Advertisement Jump to content
Sign in to follow this  
silverphyre673

Using SDL_FillRect with OpenGL/SDL

This topic is 4907 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 made a GUI system in SDL when my project was not using OpenGL for hardware accelerated rotation purposes. So when I switched to using OpenGL, the GUI stopped rendering. I was wondering if there was a way to switch to orthographic mode or something in SDL so that functions like SDL_FillRect and SDL_BlitSurface() would work correctly. Thanks for your response!

Share this post


Link to post
Share on other sites
Advertisement
You can use the SDL_OPENGLBLIT flag when calling SDL_SetVideoMode() to make the screen surface accept normal SDL blitting functions, but it's deprecated.

Share this post


Link to post
Share on other sites
Well, you can always convert your game wholly to OpenGL... if your engine is well-designed, that shouldn't be too difficult. If not, well, it's a good learning experience :)

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!