SDL_OPENGL SDL_HWSURFACE question

Started by
2 comments, last by Drew_Benton 19 years, 4 months ago
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]
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..
---http://www.michaelbolton.comI constantly dream about Michael Bolton.
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.
HxRender | Cornerstone SDL TutorialsCurrently picking on: Hedos, Programmer One
Awesome! Thank you guys for your time!

[Edited by - Drew_Benton on May 25, 2005 9:39:35 PM]

This topic is closed to new replies.

Advertisement