SDL_Surface Struct Reference

#include <SDL_video.h>


Data Fields

Uint32 flags
SDL_PixelFormatformat
int w
int h
Uint16 pitch
void * pixels
int offset
struct private_hwdata * hwdata
SDL_Rect clip_rect
Uint32 unused1
Uint32 locked
struct SDL_BlitMap * map
unsigned int format_version
int refcount


Detailed Description

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

Field Documentation

SDL_Rect clip_rect

clipping information Read-only

Uint32 flags

Read-only

Read-only

unsigned int format_version

format version, bumped at every change to invalidate blit maps Private

int h

Read-only

struct private_hwdata* hwdata [read]

Hardware-specific surface info

Uint32 locked

Allow recursive locks Private

struct SDL_BlitMap* map [read]

info for fast blit mapping to other surfaces Private

int offset

Private

Uint16 pitch

Read-only

void* pixels

Read-write

int refcount

Reference count -- used when freeing surface Read-mostly

Uint32 unused1

for binary compatibility


The documentation for this struct was generated from the following file:

Generated on Mon Sep 21 21:29:50 2009 for Simple DirectMedia Layer by  doxygen 1.5.8