|
Statics |
| static int | get_mask_shift (unsigned int mask) |
| | Returns the shift of a color mask.
|
| static int | get_mask_bits (unsigned int mask) |
| | Returns the bit count of a color mask.
|
| static unsigned int | get_bitmask (int bits, int shift) |
| | Returns the color mask based on bit count and shift.
|
| static CL_PixelFormat | rgba8888 |
| | Pixel format with 32 bit depth, 8 bits per color mask.
|
| static CL_PixelFormat | argb8888 |
| | Pixel format with 32 bit depth, 8 bits per color mask.
|
| static CL_PixelFormat | rgb888 |
| | Pixel format with 24 bit depth, 8 bits per color mask, no alpha.
|
| static CL_PixelFormat | rgba4444 |
| | Pixel format with 16 bit depth, 4 bits per color mask.
|
| static CL_PixelFormat | rgb555 |
| | Pixel format with 16 bit depth, 5 bits per color mask, one bit unused.
|
| static CL_PixelFormat | rgb565 |
| | Pixel format with 16 bit depth, 5 bits for red and blue, 6 bits for green.
|
| static CL_PixelFormat | abgr8888 |
| | Pixel format with 32 bit depth, 8 bits per color mask.
|
| static CL_PixelFormat | bgr888 |
| | Pixel format with 24 bit depth, 8 bits per color mask, no alpha.
|
| static CL_PixelFormat | abgr4444 |
| | Pixel format with 16 bit depth, 4 bits per color mask.
|
| static CL_PixelFormat | bgr555 |
| | Pixel format with 16 bit depth, 5 bits per color mask, one bit unused.
|
| static CL_PixelFormat | bgr565 |
| | Pixel format with 16 bit depth, 5 bits for red and blue, 6 bits for green.
|
Public Member Functions |
|
| | CL_PixelFormat () |
| | Constructs a pixel format description.
|
| | CL_PixelFormat (const CL_PixelFormat ©) |
| | Constructs a PixelFormat.
|
| | CL_PixelFormat (int depth, unsigned int red_mask, unsigned int green_mask, unsigned int blue_mask, unsigned int alpha_mask=0, bool use_colorkey=false, unsigned int colorkey=0, CL_PixelFormatType type=pixelformat_rgba) |
|
| bool | operator== (const CL_PixelFormat &other) const |
| | Returns true if this pixel format is the same as the other one.
|
| bool | operator!= (const CL_PixelFormat &other) const |
| | Returns true if this pixel format is not the same as the other one.
|
| CL_PixelFormatType | get_type () const |
| | Returns the pixel format type (RGB or Indexed).
|
| bool | has_colorkey () const |
| | Returns true if format uses a source color key.
|
| int | get_depth () const |
| | Returns the depth of the pixel format.
|
| unsigned int | get_colorkey () const |
| | Returns the source color key.
|
| unsigned int | get_red_mask () const |
| | Returns the red component color mask.
|
| unsigned int | get_green_mask () const |
| | Returns the green component color mask.
|
| unsigned int | get_blue_mask () const |
| | Returns the blue component color mask.
|
| unsigned int | get_alpha_mask () const |
| | Returns the alpha component color mask.
|
|
| void | set_type (CL_PixelFormatType new_type) |
| | Sets the pixel format type (RGB or Indexed).
|
| void | enable_colorkey (bool enable=true) |
| | Enable/disable color key.
|
| void | set_colorkey (unsigned int i) |
| | Sets the color key.
|
| void | set_depth (int i) |
| | Sets the depth of the pixel format.
|
| void | set_red_mask (unsigned int i) |
| | Sets the red component color mask.
|
| void | set_green_mask (unsigned int i) |
| | Sets the green component color mask.
|
| void | set_blue_mask (unsigned int i) |
| | Sets the blue component color mask.
|
| void | set_alpha_mask (unsigned int i) |
| | Sets the alpha component color mask.
|