Rgba32 Struct Reference
Standard 32-bit RGBA pixel with red, green, blue, and alpha channels, all with integer values in the range [0, 255]. More...
#include <Rgba.h>
Public Member Functions | |
| Rgba32 (unsigned char r_=0, unsigned char g_=0, unsigned char b_=0, unsigned char a_=255) | |
| operator Vector3 () const | |
| operator RgbaHDR () const | |
| real_t | luminance () const |
Static Public Member Functions | |
| static Rgba32 | fromVector (const Vector3 &v) |
Public Attributes | |
| union { | |
| struct { | |
| unsigned char b | |
| unsigned char g | |
| unsigned char r | |
| unsigned char a | |
| } | |
| unsigned char data [4] | |
| }; | |
Detailed Description
Standard 32-bit RGBA pixel with red, green, blue, and alpha channels, all with integer values in the range [0, 255].Definition at line 24 of file Rgba.h.
Constructor & Destructor Documentation
| Rgba32::Rgba32 | ( | unsigned char | r_ = 0, |
|
| unsigned char | g_ = 0, |
|||
| unsigned char | b_ = 0, |
|||
| unsigned char | a_ = 255 | |||
| ) | [inline, explicit] |
Member Function Documentation
| Rgba32::operator Vector3 | ( | ) | const [inline] |
| Rgba32::operator RgbaHDR | ( | ) | const [inline] |
| real_t Rgba32::luminance | ( | ) | const [inline] |
Member Data Documentation
| unsigned char Rgba32::data[4] |
| union { ... } |
The documentation for this struct was generated from the following files:
Generated on 28 Feb 2009 for Milton by
1.5.6