🔒 Locked
Open Libraries
Advertisement
Original Post
Are there libraries like OpenGL and OpenAL that would do the things the DirectX components do (ie. directplay and directinput). And if there are are they cross platform like OpenGL and OpenAL. And is OpenAL as good as directsound
Matthew
WebMaster
www.Matt-Land.com
OpenAL was excellent when I messed around with it (I''ll probably use it again for my current project). I''m using SDL to do crossplatform (Mac, Windows, *nix+XF86, BeOS) input, threading, window management, and time keeping. It doesn''t do networking, but there''s another library on the SDL site to do that for a couple platforms.
[Resist Windows XP''s Invasive Production Activation Technology!]
[Resist Windows XP''s Invasive Production Activation Technology!]
Oh, yeah, and SDL is open source under the LGPL
.
[Resist Windows XP''s Invasive Production Activation Technology!]
[Resist Windows XP''s Invasive Production Activation Technology!]
I think OpenAL does. OpenAL uses DirectSound in Windows, so it should be able to do everything DirectSound does. That''s why I''m thinking of using it instead of SDL to do sound for my project
.
[Resist Windows XP''s Invasive Production Activation Technology!]
[Resist Windows XP''s Invasive Production Activation Technology!]
As I said before, SDL does input. Somewhere on the SDL site there is a package called SDL_Net (or something similar). I''m not sure how far along it is, but it is a cross platform network library. Also, there is something called OpenPlay (made by Apple). I didn''t like it too much though. Or, you could just use Berkeley sockets (i.e. avoid the WSA winsock functions).
[Resist Windows XP''s Invasive Production Activation Technology!]
[Resist Windows XP''s Invasive Production Activation Technology!]
I use GLUT + OpenGL + OpenAL + xaudio (a very portable free mp3 player). Maybe I will replace GLUT by SDL, I don''t like it, but it seems that GLUT is not in developpement!
As others mentioned, SDL can be used to handle input in a platform independent way. It also has DirectDraw-like blitting and can support OpenGL rendering (though mixing them generally results in slow rendering -- better off using OpenGL directly to do the 2D if you need it).
For network related stuff, if you want something higher level than BSD style sockets (which, if used carefully, can be pretty cross-platform already between Win32 and most UNIX like systems), check out HawkNL:
http://www.hawksoft.com/hawknl/
HawkNL gives you functionality similar to DirectPlay and DirectVoice, but in a multiplatform open source package.
For network related stuff, if you want something higher level than BSD style sockets (which, if used carefully, can be pretty cross-platform already between Win32 and most UNIX like systems), check out HawkNL:
http://www.hawksoft.com/hawknl/
HawkNL gives you functionality similar to DirectPlay and DirectVoice, but in a multiplatform open source package.
SDL + OpenGL + OpenAL work very well together, SDL provides you with your DirectInput equivilant, Threading, Timers, 2D graphics etc, OpenAL provides you 3D sound, OpenGL 3D graphics. As for directplay who needs it? good old plain sockets are far more powerful and almost 100% portable, you just need a few #ifdefs to select the appropriate headers depends on OS
Ok so far I have my graphics library (openGL), my audio library (openAL), and my network library (openNL/HalkNL). Now I need an input library that can do everything Direct input can do. From what I have read SDL cannot do this. Is there like a strictly input library like openGL is strictly graphics?
Matthew
WebMaster
www.Matt-Land.com
Matthew
WebMaster
www.Matt-Land.com
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement
