Sign in to follow this  
kiketom

Aggh!! SDL and hardware acceleration in Windows

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this