My Project
Loading...
Searching...
No Matches
SDL_Surface Struct Reference

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

#include <SDL_surface.h>

Data Fields

Uint32 flags
 
SDL_PixelFormatformat
 
int w
 
int h
 
int pitch
 
void * pixels
 
void * userdata
 
int locked
 
void * list_blitmap
 
SDL_Rect clip_rect
 
SDL_BlitMap * map
 
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.

Field Documentation

◆ clip_rect

SDL_Rect clip_rect

clipping information Read-only

◆ flags

Uint32 flags

Read-only

◆ format

SDL_PixelFormat* format

Read-only

◆ h

int h

Read-only

◆ list_blitmap

void* list_blitmap

list of BlitMap that hold a reference to this surface Private

◆ locked

int locked

information needed for surfaces requiring locks Read-only

◆ map

SDL_BlitMap* map

info for fast blit mapping to other surfaces Private

◆ pitch

int pitch

Read-only

◆ pixels

void* pixels

Read-write

◆ refcount

int refcount

Reference count – used when freeing surface Read-mostly

◆ userdata

void* userdata

Application data associated with the surface Read-write


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