World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
Классы | |
struct | SDL_Color |
struct | SDL_Palette |
struct | SDL_PixelFormat |
Header for the enumerated pixel format definitions.
См. определение в файле SDL_pixels.h
typedef struct SDL_Palette SDL_Palette |
typedef struct SDL_PixelFormat SDL_PixelFormat |
enum SDL_PixelType |
Pixel type.
См. определение в файле SDL_pixels.h строка 51
enum SDL_BitmapOrder |
Bitmap pixel order, high bit -> low bit.
Элементы перечислений | |
---|---|
SDL_BITMAPORDER_NONE | |
SDL_BITMAPORDER_4321 | |
SDL_BITMAPORDER_1234 |
См. определение в файле SDL_pixels.h строка 68
enum SDL_PackedOrder |
Packed component order, high bit -> low bit.
См. определение в файле SDL_pixels.h строка 76
enum SDL_ArrayOrder |
Array component order, low byte -> high byte.
Элементы перечислений | |
---|---|
SDL_ARRAYORDER_NONE | |
SDL_ARRAYORDER_RGB | |
SDL_ARRAYORDER_RGBA | |
SDL_ARRAYORDER_ARGB | |
SDL_ARRAYORDER_BGR | |
SDL_ARRAYORDER_BGRA | |
SDL_ARRAYORDER_ABGR |
См. определение в файле SDL_pixels.h строка 92
enum SDL_PackedLayout |
Packed component layout.
См. определение в файле SDL_pixels.h строка 104
enum SDL_PixelFormatEnum |
См. определение в файле SDL_pixels.h строка 171
const DECLSPEC char* SDLCALL SDL_GetPixelFormatName | ( | Uint32 | format | ) |
Get the human readable name of a pixel format.
DECLSPEC SDL_bool SDLCALL SDL_PixelFormatEnumToMasks | ( | Uint32 | format, |
int * | bpp, | ||
Uint32 * | Rmask, | ||
Uint32 * | Gmask, | ||
Uint32 * | Bmask, | ||
Uint32 * | Amask | ||
) |
Convert one of the enumerated pixel formats to a bpp and RGBA masks.
DECLSPEC Uint32 SDLCALL SDL_MasksToPixelFormatEnum | ( | int | bpp, |
Uint32 | Rmask, | ||
Uint32 | Gmask, | ||
Uint32 | Bmask, | ||
Uint32 | Amask | ||
) |
Convert a bpp and RGBA masks to an enumerated pixel format.
DECLSPEC SDL_PixelFormat* SDLCALL SDL_AllocFormat | ( | Uint32 | pixel_format | ) |
Create an SDL_PixelFormat structure from a pixel format enum.
DECLSPEC void SDLCALL SDL_FreeFormat | ( | SDL_PixelFormat * | format | ) |
Free an SDL_PixelFormat structure.
DECLSPEC SDL_Palette* SDLCALL SDL_AllocPalette | ( | int | ncolors | ) |
Create a palette structure with the specified number of color entries.
DECLSPEC int SDLCALL SDL_SetPixelFormatPalette | ( | SDL_PixelFormat * | format, |
SDL_Palette * | palette | ||
) |
Set the palette for a pixel format structure.
DECLSPEC int SDLCALL SDL_SetPaletteColors | ( | SDL_Palette * | palette, |
const SDL_Color * | colors, | ||
int | firstcolor, | ||
int | ncolors | ||
) |
Set a range of colors in a palette.
palette | The palette to modify. |
colors | An array of colors to copy into the palette. |
firstcolor | The index of the first palette entry to modify. |
ncolors | The number of entries to modify. |
DECLSPEC void SDLCALL SDL_FreePalette | ( | SDL_Palette * | palette | ) |
Free a palette created with SDL_AllocPalette().
DECLSPEC Uint32 SDLCALL SDL_MapRGB | ( | const SDL_PixelFormat * | format, |
Uint8 | r, | ||
Uint8 | g, | ||
Uint8 | b | ||
) |
Maps an RGB triple to an opaque pixel value for a given pixel format.
DECLSPEC Uint32 SDLCALL SDL_MapRGBA | ( | const SDL_PixelFormat * | format, |
Uint8 | r, | ||
Uint8 | g, | ||
Uint8 | b, | ||
Uint8 | a | ||
) |
Maps an RGBA quadruple to a pixel value for a given pixel format.
DECLSPEC void SDLCALL SDL_GetRGB | ( | Uint32 | pixel, |
const SDL_PixelFormat * | format, | ||
Uint8 * | r, | ||
Uint8 * | g, | ||
Uint8 * | b | ||
) |
Get the RGB components from a pixel of the specified format.
DECLSPEC void SDLCALL SDL_GetRGBA | ( | Uint32 | pixel, |
const SDL_PixelFormat * | format, | ||
Uint8 * | r, | ||
Uint8 * | g, | ||
Uint8 * | b, | ||
Uint8 * | a | ||
) |
Get the RGBA components from a pixel of the specified format.