best way to setup sdl...
Ive been reading through a few tutorials on setting up sdl with opengl and they all seem to use a bunch of hacks. For example, in nehe's lesson 1 sdl port, the author uses the following to enable an alpha channel... SDL_SetFillRect(surface, NULL, surface->format(0,0,0,0)); Also, in the same code: SDL_SetAttribute(SDL_GL_RED_SIZE, 5); (etc for rgb) he left out ALPHA_SIZE all together? What if I want to use 32 bit color?? edit: whats up with 5? So what is the best way to actually setup sdl with opengl? Can some one point me to an open source sdl app or game so that I can learn how to use it properly? I found the sdl documentation to be a bit hard to read. Thanks a bunch. ~Jay
Ohh! Take a look at my tutorial! [smile] I hope it helps some. If there's something that you do not get feel free to ask. I'm still working on updating that one, but have had a lack of time.
sweet! Great tutorial man! I appreciate all of the extra info as well such as GLFW and such. I have another question for you though, it's a bit off topic but you said you made your own input system, so you will probably know this... How exactly do you do key binding? I was thinking of using stl map...?
Thanks again. I probably will send you a pm tomarrow. thanx.
~Jay
Thanks again. I probably will send you a pm tomarrow. thanx.
~Jay
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement