Archived

This topic is now archived and is closed to further replies.

Evil-Prey

SDl + OpenGl

Recommended Posts

Im just curious what the more experienced OpenGl programmers have to say about using an sdl framework and OpenGL rendering. Are there any advantages and disadvantages.

Share this post


Link to post
Share on other sites
An advantage is that it allows you to do actual game programming rather than writing code for networking, sound, etc. Also it''s the only real other sound alternative to directx. I tried the windows sound stuff and could not get more than 1 sound playing, and a group I was in tested most of the other sound libraries and ended up using this one. So for sound it''s one of the best, and it gives I believe good networking and timing, etc code.

So in essence it''s at least a good tool for providing the basics/tech while getting the gameplay programming running.

Luigi Pino
The 23rd Dimension
OpenAL is being pushed by creative, UT 2003 is using it. It is supported. It was even supported on my old SB128 card.

Death of one is a tragedy, death of a million is just a statistic.

Share this post


Link to post
Share on other sites
I think this post as led to some controversial between OpenAL, SDL and DirectSound and derived too much from the initial question. SDL is more than just a sound library : it provide message handling, graphics and input control. I would say that it is a good choice if you were programming something to be portable. In fact, that is best strength. As it is also easy to use, it remains a good choice for Windows specific applications. But beware, SDL uses DirectX in Windows so the result of calls to graphic functions is unpredictable (some cards support it as I was told but they are few). I don''t claim SDL is the best, but I''m sure it can suit your needs.

Also if you want some networking check HawkNL on www.hawksoft.com.



C4ctusAl

What about some trouble ?

Share this post


Link to post
Share on other sites
SDL does networking too I believe, and early this year when we were checking about networking, HawkNL was hard to compile and didn''t have very much info documentation wise. It probably has changed but looking over the forums at the site it seems it hasn''t. Better still would be writing your own library using winsock for windows, and other socket stuff for other os games. But as always when cross-platforming check the endian, oh and another quick tip - bool = 1 = 4...

Let a new derivation begin
And if doing your own networking - best guide : http://www.ecst.csuchico.edu/~beej/guide/net/

Luigi Pino
The 23rd Dimension
But sdl_net allows for basic network functions. So it seems that SDL might be a good place to start if someone is starting and doesn''t want to go straight into anything but just making a game. There seem to be alot of add-on libraries that use which is good and bad as it may add to the frustration of adding multiple mp3 sounds without adding 2 extra libraries, and have a bunch of .dll''s in your game for just a few things.

Luigi Pino
The 23rd Dimension