Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
SDL_CreateRGBSurface(3)
Edit
PageHistory
Diff
Info
LikePages
SDL_CreateRGBSurface !!!SDL_CreateRGBSurface NAME SYNOPSIS DESCRIPTION SEE ALSO ---- !!NAME SDL_CreateRGBSurface- Create an empty SDL_Surface !!SYNOPSIS __#include __ __SDL_Surface *SDL_CreateRGBSurface__(__Uint32 flags, int width, int height, int depth, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask__); !!DESCRIPTION Allocate an empty surface (must be called after ''SDL_!SetVideoMode'') If __depth__ is 8 bits an empty palette is allocated for the surface, otherwise a 'packed-pixel' __SDL_!PixelFormat__ is created using the __[[RGBA]mask__'s provided (see __SDL_!PixelFormat__). The __flags__ specifies the type of surface that should be created, it is an OR'd combination of the following possible values. __SDL_SWSURFACE__ SDL will create the surface in system memory. This improves the performance of pixel level access, however you may not be able to take advantage of some types of hardware blitting. __SDL_HWSURFACE__ SDL will attempt to create the surface in video memory. This will allow SDL to take advantage of Video- __SDL_SRCCOLORKEY__ With this flag SDL will attempt to find the best location for this surface, either in system memory or video memory, to obtain hardware colorkey blitting support. __SDL_SRCALPHA__ With this flag SDL will attempt to find the best location for this surface, either in system memory or video memory, to obtain hardware alpha support !!SEE ALSO __SDL_CreateRGBSurfaceFrom__, __SDL_!FreeSurface__, __SDL_!SetVideoMode__, __SDL_!LockSurface__, __SDL_!PixelFormat__, __SDL_Surface__ ----
One page links to
SDL_CreateRGBSurface(3)
:
SDLManPages
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.