Sign in to follow this  

opengl and sdl...

This topic is 4714 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

This topic is 4714 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this