SDL  2.0
SDL_PixelFormat Struct Reference

#include <SDL_pixels.h>

+ Collaboration diagram for SDL_PixelFormat:

Data Fields

Uint32 format
 
SDL_Palettepalette
 
Uint8 BitsPerPixel
 
Uint8 BytesPerPixel
 
Uint8 padding [2]
 
Uint32 Rmask
 
Uint32 Gmask
 
Uint32 Bmask
 
Uint32 Amask
 
Uint8 Rloss
 
Uint8 Gloss
 
Uint8 Bloss
 
Uint8 Aloss
 
Uint8 Rshift
 
Uint8 Gshift
 
Uint8 Bshift
 
Uint8 Ashift
 
int refcount
 
struct SDL_PixelFormatnext
 

Detailed Description

Note
Everything in the pixel format structure is read-only.

Definition at line 318 of file SDL_pixels.h.

Field Documentation

◆ Aloss

Uint8 SDL_PixelFormat::Aloss

Definition at line 332 of file SDL_pixels.h.

Referenced by Blit4to4MaskAlpha(), RLEAlphaSurface(), and SDL_CalculateBlitA().

◆ Amask

◆ Ashift

Uint8 SDL_PixelFormat::Ashift

◆ BitsPerPixel

◆ Bloss

Uint8 SDL_PixelFormat::Bloss

Definition at line 331 of file SDL_pixels.h.

Referenced by RLEAlphaSurface().

◆ Bmask

◆ Bshift

Uint8 SDL_PixelFormat::Bshift

Definition at line 335 of file SDL_pixels.h.

Referenced by RLEAlphaSurface(), SDL_Blit_Slow(), and SDL_CalculateBlitA().

◆ BytesPerPixel

◆ format

◆ Gloss

Uint8 SDL_PixelFormat::Gloss

Definition at line 330 of file SDL_pixels.h.

Referenced by RLEAlphaSurface().

◆ Gmask

◆ Gshift

Uint8 SDL_PixelFormat::Gshift

Definition at line 334 of file SDL_pixels.h.

Referenced by RLEAlphaSurface(), SDL_Blit_Slow(), and SDL_CalculateBlitA().

◆ next

struct SDL_PixelFormat* SDL_PixelFormat::next

Definition at line 338 of file SDL_pixels.h.

Referenced by SDL_FreeFormat().

◆ padding

Uint8 SDL_PixelFormat::padding[2]

Definition at line 324 of file SDL_pixels.h.

◆ palette

◆ refcount

int SDL_PixelFormat::refcount

Definition at line 337 of file SDL_pixels.h.

◆ Rloss

Uint8 SDL_PixelFormat::Rloss

Definition at line 329 of file SDL_pixels.h.

Referenced by RLEAlphaSurface().

◆ Rmask

◆ Rshift

Uint8 SDL_PixelFormat::Rshift

Definition at line 333 of file SDL_pixels.h.

Referenced by RLEAlphaSurface(), SDL_Blit_Slow(), and SDL_CalculateBlitA().


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