module lib.sdl2.pixels
Code Map
module lib.sdl2.pixels;
enum SDL_ALPHA_OPAQUE;
enum SDL_ALPHA_TRANSPARENT;
enum SDL_PIXELTYPE_UNKNOWN;
enum SDL_PIXELTYPE_INDEX1;
enum SDL_PIXELTYPE_INDEX4;
enum SDL_PIXELTYPE_INDEX8;
enum SDL_PIXELTYPE_PACKED8;
enum SDL_PIXELTYPE_PACKED16;
enum SDL_PIXELTYPE_PACKED32;
enum SDL_PIXELTYPE_ARRAYU8;
enum SDL_PIXELTYPE_ARRAYU16;
enum SDL_PIXELTYPE_ARRAYU32;
enum SDL_PIXELTYPE_ARRAYF16;
enum SDL_PIXELTYPE_ARRAYF32;
enum SDL_BITMAPORDER_NONE;
enum SDL_BITMAPORDER_4321;
enum SDL_BITMAPORDER_1234;
enum SDL_PACKEDORDER_NONE;
enum SDL_PACKEDORDER_XRGB;
enum SDL_PACKEDORDER_RGBX;
enum SDL_PACKEDORDER_ARGB;
enum SDL_PACKEDORDER_RGBA;
enum SDL_PACKEDORDER_XBGR;
enum SDL_PACKEDORDER_BGRX;
enum SDL_PACKEDORDER_ABGR;
enum SDL_PACKEDORDER_BGRA;
enum SDL_ARRAYORDER_NONE;
enum SDL_ARRAYORDER_RGB;
enum SDL_ARRAYORDER_RGBA;
enum SDL_ARRAYORDER_ARGB;
enum SDL_ARRAYORDER_BGR;
enum SDL_ARRAYORDER_BGRA;
enum SDL_ARRAYORDER_ABGR;
enum SDL_PACKEDLAYOUT_NONE;
enum SDL_PACKEDLAYOUT_332;
enum SDL_PACKEDLAYOUT_4444;
enum SDL_PACKEDLAYOUT_1555;
enum SDL_PACKEDLAYOUT_5551;
enum SDL_PACKEDLAYOUT_565;
enum SDL_PACKEDLAYOUT_8888;
enum SDL_PACKEDLAYOUT_2101010;
enum SDL_PACKEDLAYOUT_1010102;
enum SDL_PIXELFORMAT_UNKNOWN;
enum SDL_PIXELFORMAT_INDEX1LSB;
enum SDL_PIXELFORMAT_INDEX1MSB;
enum SDL_PIXELFORMAT_INDEX4LSB;
enum SDL_PIXELFORMAT_INDEX4MSB;
enum SDL_PIXELFORMAT_INDEX8;
enum SDL_PIXELFORMAT_RGB332;
enum SDL_PIXELFORMAT_RGB444;
enum SDL_PIXELFORMAT_RGB555;
enum SDL_PIXELFORMAT_BGR555;
enum SDL_PIXELFORMAT_ARGB4444;
enum SDL_PIXELFORMAT_RGBA4444;
enum SDL_PIXELFORMAT_ABGR4444;
enum SDL_PIXELFORMAT_BGRA4444;
enum SDL_PIXELFORMAT_ARGB1555;
enum SDL_PIXELFORMAT_RGBA5551;
enum SDL_PIXELFORMAT_ABGR1555;
enum SDL_PIXELFORMAT_BGRA5551;
enum SDL_PIXELFORMAT_RGB565;
enum SDL_PIXELFORMAT_BGR565;
enum SDL_PIXELFORMAT_RGB24;
enum SDL_PIXELFORMAT_BGR24;
enum SDL_PIXELFORMAT_RGB888;
enum SDL_PIXELFORMAT_RGBX8888;
enum SDL_PIXELFORMAT_BGR888;
enum SDL_PIXELFORMAT_BGRX8888;
enum SDL_PIXELFORMAT_ARGB8888;
enum SDL_PIXELFORMAT_RGBA8888;
enum SDL_PIXELFORMAT_ABGR8888;
enum SDL_PIXELFORMAT_BGRA8888;
enum SDL_PIXELFORMAT_ARGB2101010;
enum SDL_PIXELFORMAT_RGBA32;
enum SDL_PIXELFORMAT_ARGB32;
enum SDL_PIXELFORMAT_BGRA32;
enum SDL_PIXELFORMAT_ABGR32;
struct SDL_Color
{
public:
r: u8;
g: u8;
b: u8;
a: u8;
}
struct SDL_Palette
{
public:
ncolors: i32;
colors: SDL_Color*;
_version: u32;
refcount: i32;
}
struct SDL_PixelFormat
{
public:
format: u32;
palette: SDL_Palette*;
BitsPerPixel: u8;
BytesPerPixel: u8;
padding: u16;
Rmask: u32;
Gmask: u32;
Bmask: u32;
Amask: u32;
Rloss: u8;
Gloss: u8;
Bloss: u8;
Aloss: u8;
Rshift: u8;
Gshift: u8;
Bshift: u8;
Ashift: u8;
refcount: i32;
next: SDL_PixelFormat*;
}
fn SDL_GetPixelFormatName(u32) const(char)*;
fn SDL_PixelFormatEnumToMasks(u32, i32*, u32*, u32*, u32*, u32*) bool;
fn SDL_MasksToPixelFormatEnum(i32, u32, u32, u32, u32) u32;
fn SDL_AllocFormat(u32) SDL_PixelFormat*;
fn SDL_FreeFormat(SDL_PixelFormat*);
fn SDL_AllocPalette(i32) SDL_Palette*;
fn SDL_SetPixelFormatPalette(SDL_PixelFormat*, SDL_Palette*) i32;
fn SDL_SetPaletteColors(SDL_Palette*, const(const(SDL_Color)*), i32, i32) i32;
fn SDL_FreePalette(SDL_Palette*);
fn SDL_MapRGB(const(const(SDL_PixelFormat)*), u8, u8, u8) u32;
fn SDL_MapRGBA(const(const(SDL_PixelFormat)*), u8, u8, u8, u8) u32;
fn SDL_CalculateGammaRamp(f32, u16*);