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 | |
| int | AlphaBits | 
| uint32 | AlphaMask | 
| int | AlphaShift | 
| int | BlueBits | 
| uint32 | BlueMask | 
| int | BlueShift | 
| int | GreenBits | 
| uint32 | GreenMask | 
| int | GreenShift | 
| int | PalEntries | 
| Number of palette entries. | |
| int | PixelBytes | 
| Number of bytes for every pixel. | |
| int | RedBits | 
| The number of significant bits for every color. | |
| uint32 | RedMask | 
| 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). | |
Detailed Description
Structure describing the pixel format.
Definition at line 70 of file graph2d.h.
Member Function Documentation
| void csPixelFormat::complete | ( | ) |  [inline] | 
Little helper function to complete a csPixelFormat structure given that the masks are correctly filled in.
Member Data Documentation
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.
Definition at line 77 of file graph2d.h.
Referenced by csPixMixerRGBA< Tpixel >::csPixMixerRGBA().
The documentation for this struct was generated from the following file:
- ivideo/graph2d.h
Generated for Crystal Space by doxygen 1.4.7

