[SDL] VP3 video codec playback
johns98 at gmx.net
Mon Jul 22 08:23:01 PDT 2002
Assuming the SDL_Surface* screen is your main window, something like
ur_surface = SDL_CreateRGBSurface(SDL_SWSURFACE | SDL_SRCCOLORKEY |
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:
> 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?
> SDL mailing list
> SDL at libsdl.org
More information about the SDL