SDL  2.0
SDL_Surface Struct Reference

A collection of pixels used in software blitting. More...

#include <SDL_surface.h>

+ Collaboration diagram for SDL_Surface:

Data Fields

Uint32 flags
 
SDL_PixelFormatformat
 
int w
 
int h
 
int pitch
 
voidpixels
 
voiduserdata
 
int locked
 
voidlock_data
 
SDL_Rect clip_rect
 
struct SDL_BlitMapmap
 
int refcount
 

Detailed Description

A collection of pixels used in software blitting.

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

Definition at line 69 of file SDL_surface.h.

Field Documentation

◆ clip_rect

SDL_Rect SDL_Surface::clip_rect

clipping information Read-only

Definition at line 85 of file SDL_surface.h.

Referenced by SDL_ConvertSurface().

◆ flags

Uint32 SDL_Surface::flags

Read-only

Definition at line 71 of file SDL_surface.h.

◆ format

◆ h

◆ lock_data

void* SDL_Surface::lock_data

Read-only

Definition at line 82 of file SDL_surface.h.

◆ locked

int SDL_Surface::locked

information needed for surfaces requiring locks Read-only

Definition at line 81 of file SDL_surface.h.

◆ map

struct SDL_BlitMap* SDL_Surface::map

info for fast blit mapping to other surfaces Private

Definition at line 88 of file SDL_surface.h.

Referenced by RLEAlphaSurface(), SDL_ConvertSurface(), SDL_RLEAlphaBlit(), SDL_RLEBlit(), and SDL_SaveBMP_RW().

◆ pitch

◆ pixels

◆ refcount

int SDL_Surface::refcount

Reference count – used when freeing surface Read-mostly

Definition at line 91 of file SDL_surface.h.

◆ userdata

void* SDL_Surface::userdata

Application data associated with the surface Read-write

Definition at line 78 of file SDL_surface.h.

◆ w


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