[SDL] SDL_VIDEODRIVER=windib and SDL_HWSURFACE

Sam Lantinga slouken at devolution.com
Tue Jan 18 10:44:32 PST 2005


> What should be the effect of using windib as the video driver while 
> specifying an SDL_HWSURFACE ?   Should I be able to get a hardware 
> surface for rendering, or will it become a software surface?


> Here is the code:

> _putenv("SDL_VIDEODRIVER=windib");
> SDL_Init(SDL_INIT_VIDEO);
> SDL_Surface screen = SDL_SetVideoMode(640, 480, video_bpp, SDL_HWSURFACE);

It will become a software surface.

See ya,
	-Sam Lantinga, Software Engineer, Blizzard Entertainment




More information about the SDL mailing list