SDL 3.0
|
#include <SDL_surface.h>
Data Fields | |
Uint32 | flags |
SDL_PixelFormat * | format |
int | w |
int | h |
int | pitch |
void * | pixels |
void * | reserved |
int | locked |
void * | list_blitmap |
SDL_Rect | clip_rect |
SDL_BlitMap * | map |
int | refcount |
A collection of pixels used in software blitting.
Pixels are arranged in memory in rows, with the top row first. Each row occupies an amount of memory given by the pitch (sometimes known as the row stride in non-SDL APIs).
Within each row, pixels are arranged from left to right until the width is reached. Each pixel occupies a number of bits appropriate for its format, with most formats representing each pixel as one or more whole bytes (in some indexed formats, instead multiple pixels are packed into each byte), and a byte order given by the format. After encoding all pixels, any remaining bytes to reach the pitch are used as padding to reach a desired alignment, and have undefined contents.
pixels
, which, if not NULL, contains the raw pixel data for the surface. Definition at line 108 of file SDL_surface.h.
SDL_Rect SDL_Surface::clip_rect |
clipping information Read-only
Definition at line 125 of file SDL_surface.h.
Uint32 SDL_Surface::flags |
Read-only
Definition at line 110 of file SDL_surface.h.
SDL_PixelFormat* SDL_Surface::format |
Read-only
Definition at line 111 of file SDL_surface.h.
int SDL_Surface::h |
Read-only
Definition at line 112 of file SDL_surface.h.
void* SDL_Surface::list_blitmap |
list of BlitMap that hold a reference to this surface Private
Definition at line 122 of file SDL_surface.h.
int SDL_Surface::locked |
information needed for surfaces requiring locks Read-only
Definition at line 119 of file SDL_surface.h.
SDL_BlitMap* SDL_Surface::map |
info for fast blit mapping to other surfaces Private
Definition at line 128 of file SDL_surface.h.
int SDL_Surface::pitch |
Read-only
Definition at line 113 of file SDL_surface.h.
void* SDL_Surface::pixels |
Read-write
Definition at line 114 of file SDL_surface.h.
int SDL_Surface::refcount |
Reference count – used when freeing surface Read-mostly
Definition at line 131 of file SDL_surface.h.
void* SDL_Surface::reserved |
Private
Definition at line 116 of file SDL_surface.h.
int SDL_Surface::w |
Definition at line 112 of file SDL_surface.h.