Wiki Page Content

Revision 10 as of 2010-11-01 02:17:58

Clear message

DRAFT

SDL_Surface

A structure that contains a collection of pixels used in software blitting.

Data Fields

Uint32

flags

internal

SDL_PixelFormat*

format

read-only

int

w, h

read-only

int

pitch

read-only

void*

pixels

read-write

Application data associated with the surface

void*

userdata

read-write

Information needed for surfaces requiring locks

int

locked

read-only

void*

lock_data

read-only

Clipping information

SDL_Rect

clip_rect

read-only

Info for fast blit mapping to other surfaces

SDL_BlitMap*

map

internal

Format version, bumped at every change to invalidate blit maps

unsigned int Uint?

format_version

internal

Reference count -- used when freeing surface

int

refcount

read-mostly

green

Code Examples

You can add your code example here

Remarks

An SDL_Surface structure represents an area of graphical memory that can be drawn to.

This structure should be treated as read-only, except for pixels which, if not NULL, contains the raw pixel data for the surface.


CategoryStruct, CategorySurface

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit