Aggh!! SDL and hardware acceleration in Windows
Hi!
I'm programming a isometric game in Windows with SDL.
And i can't create a screen surface in Hardware.
The flags that i use are:
SDL_HWSURFACE | SDL_DOUBLEBUF
When i call this funtion
bool isHWSurface() { return (surface->flags & (SDL_HWSURFACE)) ? true : false; }
returns false.
[wow]
How can i create a hardware surface in windows?????
Thx.
Note: the game is in windowed mode.
From the SDL Wiki:
Source: click
Quote:Be aware that you may request a hardware surface, but receive a software surface. Many platforms can only provide a hardware surface when using SDL_FULLSCREEN.
Source: click
Quote:Original post by kiketom
Note: the game is in windowed mode.
I'm not sure, but I think you may only be able to get a gardware surface in fullscreen (or is that on linux...).
Remember, depending on how you make your program software surfaces may be just as fast or even faster.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement