Advertisement

opengl and sdl...

Started by January 16, 2005 11:51 PM
0 comments, last by Kylotan 20 years, 1 month ago
I have already started an sdl frame work however, I was curious what you can and shouldn't do with sdl and if it matters if you use pure opengl calls vs mix matching with sdl. Say I wanted to plug a render engine into an sdl frame work, what may I want to change due to speed reasons? Can you use standard gl texture creation methods and bind them normally, or do you have to use surfaces and map the colors with sdl? If my questions were not very clear, I'll try and explain them better. Basically though, what i want to know is can use do everything the same with opengl when using sdl as you could in a standard win32 application? Thanks a lot.
Generally all you do is use SDL to set up the window, and optionally load the surfaces. The rendering would then be done entirely by OpenGL, except for buffer-flipping which you ask SDL to do.

This topic is closed to new replies.

Advertisement