Jump to content
  • Advertisement
Sign in to follow this  
feti

Using SDL_Rect/SDL_Surface with OpenGL

This topic is 4015 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

Is it possible with an OpenGL window in SDL to still somehow use SDL_Rect and other non OpenGL objects on top of the OpenGL window? I'm in the process of making a menu system, but to speed up the process I'd like to use SDL stuff on top of OpenGL instead of writing all the mundane mouse menu items and whatnot in OpenGL. If not, it's what I expected, but I'd still like a professionals opinion.

Share this post


Link to post
Share on other sites
Advertisement
all tho you cant use rects and the such from sdl when using opengl for rendering you can still use the sdl event manager to handle events which makes it not so mundane.

Share this post


Link to post
Share on other sites
I use SDL surfaces for my menus and GUI objects while my actual game scene is rendered with Opengl.

SDL won't render to the opengl window however a SDL_Surface can be converted into an opengl texture which of course can be rendered.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!