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 */

        /* clipping information */
        SDL_Rect clip_rect;                     /* Read-only */

        /* Reference count -- used when freeing surface */
        int refcount;                           /* Read-mostly */


     /* This structure also contains private fields not shown here */
} 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_rect

surface clip rectangle

DESCRIPTION

SDL_Surface’s represent areas of "graphical" memory, memory that can be drawn to. The video framebuffer is returned as a 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_SRCCOLORKEY

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



More Linux Commands

manpages/pamscale.1.html
pamscale(1) - scale a Netpbm image - Linux manual page......
This program is part of Netpbm(1) pamscale scales a Netpbm image by a specified factor, or scales individually horizontally and vertically by specified factors.

manpages/gnutls_rsa_params_cpy.3.html
gnutls_rsa_params_cpy(3) - API function - Linux manual page
This function will copy the RSA parameters structure from source to destination. RETURNS GNUTLS_E_SUCCESS on success, or an negative error code. REPORTING BUGS

manpages/XkbTranslateKeySym.3.html
XkbTranslateKeySym(3) - Find the string and symbol associate
XkbTranslateKeySym applies the transformations specified in mods to the symbol specified by sym_inout. It returns in buf the string, if any, associated with the

manpages/gnutls_rsa_export_get_modulus_bits.3.html
gnutls_rsa_export_get_modulus_bits(3) - API function........
Get the export RSA parameters modulus size. RETURNS The bits used in the last RSA-EXPORT key exchange with the peer, or a negative error code in case of error.

manpages/sync_server.8.html
sync_server(8) - server side of the synchronization (replica
Sync_server is the server side of the the replication system. It runs on the target (replica) system and listens for connections from sync_client which provides

manpages/sabcmd.1.html
sabcmd(1) - a command line interface to Sablotron XSLT proce
sabcmd is a command line interface to Sablotron XSLT processor. You can use is to transform XML files with XSLT stylesheets. The only required parameter is a st

manpages/roff2x.1.html
roff2x(1) - transform roff code into x mode - Linux man page
roff2x transforms roff code into X mode corresponding to the groff devices X*; this mode is suitable for gxditview(1). Print the result to standard output. Ther

manpages/argz_replace.3.html
argz_replace(3) - functions to handle an argz list (ManPage)
These functions are glibc-specific. An argz vector is a pointer to a character buffer together with a length. The intended interpretation of the character buffe

manpages/perlsyn.1.html
perlsyn(1) - Perl syntax (Commands - Linux manual page).....
A Perl program consists of a sequence of declarations and statements which run from the top to the bottom. Loops, subroutines, and other control structures allo

manpages/restartterm.3ncurses.html
restartterm(3ncurses) - curses interfaces to terminfo databa
These low-level routines must be called by programs that have to deal directly with the terminfo database to handle certain terminal capabilities, such as progr

manpages/ext3.5.html
ext3(5) the second extended file system br ext2 the third ex
The second, third, and fourth extended file systems, or ext2, ext3, and ext4 as they are commonly known, are Linux file systems that have historically been the

manpages/termio.7.html
termio(7) - System V terminal driver interface (Man Page)...
termio is the name of the old System V terminal driver interface. This interface defined a termio structure used to store terminal settings, and a range of ioct





We can't live, work or learn in freedom unless the software we use is free.