[SDL] newb question: SDL_OPENGLBLIT flag
slouken at devolution.com
Sat Aug 9 12:10:01 PDT 2003
> In the documentation in the doc project, I noticed it
> says that new applications shouldn't use the
> SDL_OPENGLBLIT flag in setting video modes.
> I was wondering what the reasoning behind this is
It's slow to continually update the texture memory from system memory.
> and more importantly, what would be a better alternative?
Preload your textures so they are video memory.
If you look at the testgl example in the test subdirectory of the SDL
source archive, you'll see an example of drawing 2D images to the screen
in OpenGL mode using both methods.
-Sam Lantinga, Software Engineer, Blizzard Entertainment
More information about the SDL