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

◆ flags

◆ format

SDL_PixelFormat* SDL_Surface::format

Read-only

Definition at line 72 of file SDL_surface.h.

Referenced by _clearTestSurface(), LoadSprite(), LoadTexture(), main(), RecursivelyCalculateShapeTree(), RLEAlphaClipBlit(), RLEAlphaSurface(), RLEClipBlit(), RLEColorkeySurface(), run_automated_tests(), SDL_BlendFillRect(), SDL_BlendFillRect_RGB(), SDL_BlendFillRect_RGBA(), SDL_BlendFillRects(), SDL_BlendLine(), SDL_BlendLine_RGB2(), SDL_BlendLine_RGB4(), SDL_BlendLine_RGBA4(), SDL_BlendLines(), SDL_BlendPoint(), SDL_BlendPoint_RGB(), SDL_BlendPoint_RGBA(), SDL_BlendPoints(), SDL_CalculateBlit(), SDL_CalculateBlit0(), SDL_CalculateBlit1(), SDL_CalculateBlitA(), SDL_CalculateBlitN(), SDL_CalculateShapeBitmap(), SDL_ConvertColorkeyToAlpha(), SDL_ConvertSurface(), SDL_CreateColorCursor(), SDL_CreateRGBSurfaceWithFormat(), SDL_CreateSurfaceOnStack(), SDL_CreateTextureFromSurface(), SDL_DrawLine(), SDL_DrawLine1(), SDL_DrawLine2(), SDL_DrawLine4(), SDL_DrawLines(), SDL_DrawPoint(), SDL_DrawPoints(), SDL_DuplicateSurface(), SDL_FillRect(), SDL_FreeSurface(), SDL_GL_DeleteContext(), SDL_LoadBMP_RW(), SDL_LowerBlit(), SDL_LowerBlitScaled(), SDL_MapSurface(), SDL_RLEAlphaBlit(), SDL_RLEBlit(), SDL_RLESurface(), SDL_SaveBMP_RW(), SDL_SetColorKey(), SDL_SetSurfacePalette(), SDL_SoftStretch(), SDLgfx_rotateSurface(), SDLTest_CompareSurfaces(), SDLTest_LoadIcon(), SDLTest_ScreenShot(), setpix(), surface_testCompleteSurfaceConversion(), surface_testSurfaceConversion(), SW_LockTexture(), SW_RenderClear(), SW_RenderCopyEx(), SW_RenderDrawLines(), SW_RenderDrawPoints(), SW_RenderFillRects(), SW_RenderReadPixels(), SW_SetTextureAlphaMod(), SW_UpdateTexture(), UnRLEAlpha(), and verify_yuv_data().

◆ 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.

Referenced by SDL_FreeSurface(), SDL_LockSurface(), SDL_UnlockSurface(), SDL_UpperBlit(), and SDL_UpperBlitScaled().

◆ map

◆ pitch

◆ pixels

◆ refcount

int SDL_Surface::refcount

Reference count – used when freeing surface Read-mostly

Definition at line 91 of file SDL_surface.h.

Referenced by SDL_CreateRGBSurfaceWithFormat(), SDL_CreateSurfaceOnStack(), SDL_FreeSurface(), SDL_InvalidateMap(), and SDL_MapSurface().

◆ 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: