Jump to content
  • Advertisement
Sign in to follow this  
Drew_Benton

SDL_OPENGL SDL_HWSURFACE question

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

Hey guys! I have a quick question. I've been doing some research on the different modes of SDL (I just submitted an article to gamedev) and I was wondering if anyone had a definite answer on if the SDL_HWSURFACE flag with the SDL_OPENGL flag works. I see many examples that use SDL_OPENGL|SDL_HWSURFACE, but then I see some that just use SDL_OPENGL, so my question is when using the OpenGL rendering context, does the SDL_HWSURFACE work? Thanks! [Edited by - Drew_Benton on May 25, 2005 9:29:29 PM]

Share this post


Link to post
Share on other sites
Advertisement
I've never seen an example with SDL_OPENG | SDL_HWSURFACE as the video flag. I've only seen SDL_OPENGL by itself. Theres some information in the SDL documentations on why you can't combine them. I don't know..

Share this post


Link to post
Share on other sites
It makes no difference, when you call openGL, all the other context related flags are ignored. On windows, it creates an HDC instead of a direct draw surface.

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!