• Advertisement
Sign in to follow this  

Aggh!! SDL and hardware acceleration in Windows

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

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement