SDL_PixelFormat Struct Reference

`#include <SDL_pixels.h>`

Collaboration diagram for SDL_PixelFormat:
[legend]

## Data Fields

Uint32 | format
SDL_Palette * | palette
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_PixelFormat * | next

## Detailed Description

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

Definition at line 315 of file SDL_pixels.h.

## Field Documentation

## Aloss

Uint8 SDL_PixelFormat::Aloss

Definition at line 329 of file SDL_pixels.h.

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

## Amask

Uint32 SDL_PixelFormat::Amask

Definition at line 325 of file SDL_pixels.h.

Referenced by Blit2to2Key(), Blit4to4MaskAlpha(), Blit_3or4_to_3or4__inversed_rgb(), Blit_3or4_to_3or4__same_rgb(), BlitNto1Key(), BlitNtoN(), BlitNtoNKey(), BlitNtoNKeyCopyAlpha(), get_permutation(), RLEAlphaSurface(), SDL_Blit_Slow(), SDL_CalculateBlendLineFunc(), SDL_CalculateBlitA(), SDL_CalculateBlitN(), SDL_CalculateShapeBitmap(), SDL_CreateTextureFromSurface(), SDL_DrawLine4(), SDL_SaveBMP_RW(), surface_testCompleteSurfaceConversion(), and uncopy_opaque_16().

## Ashift

Uint8 SDL_PixelFormat::Ashift

Definition at line 333 of file SDL_pixels.h.

Referenced by Blit4to4MaskAlpha(), Blit_3or4_to_3or4__inversed_rgb(), Blit_3or4_to_3or4__same_rgb(), BlitNtoNKey(), RLEAlphaSurface(), and SDL_CalculateBlitA().

## BitsPerPixel

Uint8 SDL_PixelFormat::BitsPerPixel

Definition at line 319 of file SDL_pixels.h.

Referenced by LoadSprite(), LoadTexture(), SDL_CalculateBlit1(), SDL_CalculateBlitN(), SDL_CalculateDrawLineFunc(), SDL_MapSurface(), and SDL_SaveBMP_RW().

## Bloss

Uint8 SDL_PixelFormat::Bloss

Definition at line 328 of file SDL_pixels.h.

Referenced by RLEAlphaSurface().

## Bmask

Uint32 SDL_PixelFormat::Bmask

Definition at line 324 of file SDL_pixels.h.

Referenced by Blit4to4MaskAlpha(), BlitNtoNKey(), RLEAlphaClipBlit(), RLEAlphaSurface(), SDL_CalculateBlitA(), SDL_CalculateBlitN(), SDL_RLEAlphaBlit(), and SDL_SaveBMP_RW().

## Bshift

Uint8 SDL_PixelFormat::Bshift

Definition at line 332 of file SDL_pixels.h.

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

## BytesPerPixel

Uint8 SDL_PixelFormat::BytesPerPixel

Definition at line 320 of file SDL_pixels.h.

Referenced by Blit1toNAlpha(), Blit1toNAlphaKey(), Blit2101010toN(), Blit_3or4_to_3or4__inversed_rgb(), Blit_3or4_to_3or4__same_rgb(), BlitBtoNAlpha(), BlitBtoNAlphaKey(), BlitNto1(), BlitNto1Key(), BlitNto1PixelAlpha(), BlitNto1SurfaceAlpha(), BlitNto1SurfaceAlphaKey(), BlitNto2101010(), BlitNtoN(), BlitNtoNCopyAlpha(), BlitNtoNKey(), BlitNtoNKeyCopyAlpha(), BlitNtoNPixelAlpha(), BlitNtoNSurfaceAlpha(), BlitNtoNSurfaceAlphaKey(), get_permutation(), LoadTexture(), RLEAlphaClipBlit(), RLEAlphaSurface(), SDL_BlendFillRect_RGB(), SDL_BlendFillRect_RGBA(), SDL_BlendPoint_RGB(), SDL_BlendPoint_RGBA(), SDL_Blit_Slow(), SDL_BlitCopy(), SDL_CalculateBlendLineFunc(), SDL_CalculateBlit1(), SDL_CalculateBlitA(), SDL_CalculateBlitN(), SDL_CalculateDrawLineFunc(), SDL_CalculateShapeBitmap(), SDL_ConvertSurface(), SDL_RLEAlphaBlit(), SDL_RLEBlit(), SDL_SoftBlit(), SDLTest_CompareSurfaces(), and surface_testCompleteSurfaceConversion().

## format

Uint32 SDL_PixelFormat::format

Definition at line 317 of file SDL_pixels.h.

Referenced by BlitNtoN(), BlitNtoNCopyAlpha(), BlitNtoNKey(), BlitNtoNKeyCopyAlpha(), RLEAlphaSurface(), SDL_BlendFillRect_RGB(), SDL_BlendFillRect_RGBA(), SDL_BlendLine_RGB2(), SDL_BlendLine_RGB4(), SDL_BlendLine_RGBA4(), SDL_BlendPoint_RGB(), SDL_BlendPoint_RGBA(), SDL_CalculateBlit1(), SDL_CalculateBlitA(), SDL_CalculateBlitN(), SDL_CreateTextureFromSurface(), SDL_DrawLine2(), SDL_DrawLine4(), SDL_MapSurface(), and UnRLEAlpha().

## Gloss

Uint8 SDL_PixelFormat::Gloss

Definition at line 327 of file SDL_pixels.h.

Referenced by RLEAlphaSurface().

## Gmask

Uint32 SDL_PixelFormat::Gmask

Definition at line 323 of file SDL_pixels.h.

Referenced by Blit4to4MaskAlpha(), BlitNtoNKey(), RLEAlphaClipBlit(), RLEAlphaSurface(), SDL_CalculateBlitA(), SDL_CalculateBlitN(), SDL_RLEAlphaBlit(), and SDL_SaveBMP_RW().

## Gshift

Uint8 SDL_PixelFormat::Gshift

Definition at line 331 of file SDL_pixels.h.

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

## next

struct SDL_PixelFormat* SDL_PixelFormat::next

Definition at line 335 of file SDL_pixels.h.

Referenced by SDL_FreeFormat().

## padding

Uint8 SDL_PixelFormat::padding[2]

Definition at line 321 of file SDL_pixels.h.

## palette

SDL_Palette* SDL_PixelFormat::palette

Definition at line 318 of file SDL_pixels.h.

Referenced by Blit1toNAlpha(), Blit1toNAlphaKey(), BlitBtoNAlpha(), BlitBtoNAlphaKey(), BlitNto1PixelAlpha(), BlitNto1SurfaceAlpha(), BlitNto1SurfaceAlphaKey(), LoadSprite(), LoadTexture(), SDL_CalculateBlitA(), SDL_ConvertSurface(), SDL_CreateTextureFromSurface(), SDL_MapSurface(), SDL_SaveBMP_RW(), SDLgfx_rotateSurface(), and SDLTest_LoadIcon().

## refcount

int SDL_PixelFormat::refcount

Definition at line 334 of file SDL_pixels.h.

## Rloss

Uint8 SDL_PixelFormat::Rloss

Definition at line 326 of file SDL_pixels.h.

Referenced by RLEAlphaSurface().

## Rmask

Uint32 SDL_PixelFormat::Rmask

Definition at line 322 of file SDL_pixels.h.

Referenced by Blit4to4MaskAlpha(), BlitNtoNKey(), RLEAlphaClipBlit(), RLEAlphaSurface(), SDL_CalculateBlendLineFunc(), SDL_CalculateBlitA(), SDL_CalculateBlitN(), SDL_DrawLine2(), SDL_DrawLine4(), SDL_RLEAlphaBlit(), and SDL_SaveBMP_RW().

## Rshift

Uint8 SDL_PixelFormat::Rshift

Definition at line 330 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:

- include/SDL_pixels.h