Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
SDL_Surface(3)
Edit
PageHistory
Diff
Info
LikePages
SDL_Surface !!!SDL_Surface NAME STRUCTURE DEFINITION STRUCTURE DATA DESCRIPTION SEE ALSO ---- !!NAME SDL_Surface- Graphical Surface Structure !!STRUCTURE DEFINITION typedef struct SDL_Surface { Uint32 flags; /* Read-only */ SDL_!PixelFormat *format; /* Read-only */ int w, h; /* Read-only */ Uint16 pitch; /* Read-only */ void *pixels; /* Read-write */ int offset; /* Private */ /* Hardware-specific surface info */ struct private_hwdata *hwdata; /* clipping information */ SDL_Rect clip_rect; /* Read-only */ Uint32 unused1; /* for binary compatibility */ Uint32 unused2; /* for binary compatibility */ /* info for fast blit mapping to other surfaces */ struct SDL_!BlitMap *map; /* Private */ /* format version, bumped at every change to invalidate blit maps */ unsigned int format_version; /* Private */ /* Reference count -- used when freeing surface */ int refcount; /* Read-mostly */ } SDL_Surface; !!STRUCTURE DATA __flags__ Surface flags __format__ Pixel ''format'' __w, h__ Width and height of the surface __pitch__ Length of a surface scanline in bytes __pixels__ Pointer to the actual pixel data __clip_minx, clip_maxx__ X clip coords __clip_rect__ surface clip ''rectangle'' !!DESCRIPTION __SDL_Surface__'s represent areas of __SDL_Surface__ by __SDL_!SetVideoMode__ and __SDL_!GetVideoSurface__. Most of the fields should be pretty obvious. __w__ and __h__ are the width and height of the surface in pixels. __pixels__ is a pointer to the actual pixel data, the surface should be ''locked'' before accessing this field. The __clip_rect__ field is the clipping rectangle as set by __SDL_!SetClipRect__. The following are supported in the __flags__ field. __SDL_SWSURFACE__ Surface is stored in system memory __SDL_HWSURFACE__ Surface is stored in video memory __SDL_ASYNCBLIT__ Surface uses asynchronous blits if possible __SDL_ANYFORMAT__ Allows any pixel-format (Display surface) __SDL_HWPALETTE__ Surface has exclusive palette __SDL_DOUBLEBUF__ Surface is double buffered (Display surface) __SDL_FULLSCREEN__ Surface is full screen (Display Surface) __SDL_OPENGL__ Surface has an OpenGL context (Display Surface) __SDL_OPENGLBLIT__ Surface supports OpenGL blitting (Display Surface) __SDL_RESIZABLE__ Surface is resizable (Display Surface) __SDL_HWACCEL__ Surface blit uses hardware acceleration __SDL_SRCOLORKEY__ Surface use colorkey blitting __SDL_RLEACCEL__ Colorkey blitting is accelerated with RLE __SDL_SRCALPHA__ Surface blit uses alpha blending __SDL_PREALLOC__ Surface uses preallocated memory !!SEE ALSO __SDL_!PixelFormat__ ----
One page links to
SDL_Surface(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.