G3D::Color4uint8 Class ReferenceRepresents a Color4 as a packed integer.
More...
#include <Color4uint8.h>
List of all members.
Detailed Description
Represents a Color4 as a packed integer.
Convenient for creating unsigned int vertex arrays. Used by G3D::GImage as the underlying format.
WARNING: Integer color formats are different than integer vertex formats. The color channels are automatically scaled by 255 (because OpenGL automatically scales integer colors back by this factor). So Color4(1,1,1) == Color4uint8(255,255,255) but Vector3(1,1,1) == Vector3int16(1,1,1).
Constructor & Destructor Documentation
| G3D::Color4uint8::Color4uint8 |
( |
|
) |
[inline] |
| G3D::Color4uint8::Color4uint8 |
( |
const class Color4 & |
c |
) |
|
| G3D::Color4uint8::Color4uint8 |
( |
const uint8 |
_r, |
|
|
const uint8 |
_g, |
|
|
const uint8 |
_b, |
|
|
const uint8 |
_a | |
|
) |
| | [inline] |
| G3D::Color4uint8::Color4uint8 |
( |
const Color3uint8 & |
c, |
|
|
const uint8 |
_a | |
|
) |
| | [inline] |
| G3D::Color4uint8::Color4uint8 |
( |
class BinaryInput & |
bi |
) |
|
Member Function Documentation
| uint32 G3D::Color4uint8::asUInt32 |
( |
|
) |
const [inline] |
| void G3D::Color4uint8::deserialize |
( |
class BinaryInput & |
bi |
) |
|
| G3D::Color4uint8::operator const G3D::uint8 * |
( |
|
) |
const [inline] |
| G3D::Color4uint8::operator G3D::uint8 * |
( |
|
) |
[inline] |
| bool G3D::Color4uint8::operator!= |
( |
const Color4uint8 & |
other |
) |
const [inline] |
| bool G3D::Color4uint8::operator== |
( |
const Color4uint8 & |
other |
) |
const [inline] |
| G3D::uint8 & G3D::Color4uint8::operator[] |
( |
int |
i |
) |
const [inline] |
| void G3D::Color4uint8::serialize |
( |
class BinaryOutput & |
bo |
) |
const |
Member Data Documentation
The documentation for this class was generated from the following file:
Generated on Thu Aug 2 11:40:45 2007 for G3D by
1.5.2
Hosted by
|