Aggh!! SDL and hardware acceleration in Windows

Started by
1 comment, last by rip-off 18 years, 1 month ago
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.
Tomy
Advertisement
From the SDL Wiki:
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