csPixelFormat Struct Reference
[2D]
Structure describing the pixel format.
More...
#include <ivideo/graph2d.h>
Public Member Functions | |
void | complete () |
Little helper function to complete a csPixelFormat structure given that the masks are correctly filled in. | |
Public Attributes | |
uint32 | RedMask |
The masks to extract the color information from a pixel (truecolor mode only). | |
uint32 | GreenMask |
The masks to extract the color information from a pixel (truecolor mode only). | |
uint32 | BlueMask |
The masks to extract the color information from a pixel (truecolor mode only). | |
uint32 | AlphaMask |
The masks to extract the color information from a pixel (truecolor mode only). | |
int | RedShift |
The shifts to extract the color information from a pixel (truecolor mode only). | |
int | GreenShift |
The shifts to extract the color information from a pixel (truecolor mode only). | |
int | BlueShift |
The shifts to extract the color information from a pixel (truecolor mode only). | |
int | AlphaShift |
The shifts to extract the color information from a pixel (truecolor mode only). | |
int | RedBits |
The number of significant bits for every color. | |
int | GreenBits |
The number of significant bits for every color. | |
int | BlueBits |
The number of significant bits for every color. | |
int | AlphaBits |
The number of significant bits for every color. | |
int | PalEntries |
Number of palette entries. | |
int | PixelBytes |
Number of bytes for every pixel. |
Detailed Description
Structure describing the pixel format.
Definition at line 71 of file graph2d.h.
Member Function Documentation
|
Little helper function to complete a csPixelFormat structure given that the masks are correctly filled in.
|
Member Data Documentation
|
The number of significant bits for every color.
|
|
The masks to extract the color information from a pixel (truecolor mode only). Ignore the Mask and Shift fields of this structure if PalEntries != 0. |
|
The shifts to extract the color information from a pixel (truecolor mode only).
|
|
The number of significant bits for every color.
|
|
The masks to extract the color information from a pixel (truecolor mode only). Ignore the Mask and Shift fields of this structure if PalEntries != 0. |
|
The shifts to extract the color information from a pixel (truecolor mode only).
|
|
The number of significant bits for every color.
|
|
The masks to extract the color information from a pixel (truecolor mode only). Ignore the Mask and Shift fields of this structure if PalEntries != 0. |
|
The shifts to extract the color information from a pixel (truecolor mode only).
|
|
Number of palette entries. 0 for truecolor, else the number of palette entries (this number should be equal to 256 even if not all of these 256 colors can be modified (like is the case in Windows)). Currently only 0 and 256 are supported here. |
|
Number of bytes for every pixel. The only supported values currently are:
|
|
The number of significant bits for every color.
|
|
The masks to extract the color information from a pixel (truecolor mode only). Ignore the Mask and Shift fields of this structure if PalEntries != 0. |
|
The shifts to extract the color information from a pixel (truecolor mode only).
|
The documentation for this struct was generated from the following file:
- ivideo/graph2d.h
Generated for Crystal Space by doxygen 1.3.9.1