[SDL] VP3 video codec playback

Lutz Sammer johns98 at gmx.net
Mon Jul 22 08:23:01 PDT 2002

Assuming the SDL_Surface* screen is your main window, something like

SDL_SRCALPHA, 100, 50, screen->format->BitsPerPixel,
screen->format->Rmask, screen->format->Gmask, screen->format->Bmask,

would work in creating an empty surface of the screen's format.

On Mon, 2002-07-08 at 12:52, Mirko Koenig wrote:
> Hi
> How can i get an new empty surface of a size?
> I made a variable SDL_Surface* menu.
> I want it to be 100x50 to blit buttons on it and then later blit the
> whole menu surface to the screen.
> I tried SDL_ConvertSurface, but than i couldn't change the size.
> I tried SDL_CreateRGBSurface, but this semme to complicated for me. Such
> an long function just to make a surface?
> Isn't there a function to create a surface of the screen's format but
> with differnt size?
> Mirko
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl

More information about the SDL mailing list