GClasses
|
This class represents a color. It's more precise than GColor, but takes up more memory. Note that the ray tracer ignores the alpha channel because the material specifies a unique transmission color.
#include <GRayTrace.h>
Public Member Functions | |
GRayTraceColor () | |
GRayTraceColor (GRayTraceColor *pThat) | |
GRayTraceColor (unsigned int c) | |
GRayTraceColor (G3DReal alpha, G3DReal red, G3DReal green, G3DReal blue) | |
void | add (GRayTraceColor *pThat) |
void | clip () |
unsigned int | color () |
void | copy (GRayTraceColor *pThat) |
void | deserialize (GDomNode *pNode) |
Load this object from a DOM. More... | |
bool | isBlack () |
void | makeSliderColor (float f, GRayTraceColor *pDiffuseColor) |
void | multiply (G3DReal mag) |
void | multiply (GRayTraceColor *pThat) |
GDomNode * | serialize (GDom *pDoc) const |
Marshal this object into a DOM, which can then be converted to a variety of serial formats. More... | |
void | set (G3DReal alpha, G3DReal red, G3DReal green, G3DReal blue) |
void | set (unsigned int c) |
Public Attributes | |
G3DReal | a |
G3DReal | b |
G3DReal | g |
G3DReal | r |
|
inline |
|
inline |
GClasses::GRayTraceColor::GRayTraceColor | ( | unsigned int | c | ) |
|
inline |
|
inline |
|
inline |
unsigned int GClasses::GRayTraceColor::color | ( | ) |
|
inline |
void GClasses::GRayTraceColor::deserialize | ( | GDomNode * | pNode | ) |
Load this object from a DOM.
|
inline |
void GClasses::GRayTraceColor::makeSliderColor | ( | float | f, |
GRayTraceColor * | pDiffuseColor | ||
) |
|
inline |
|
inline |
Marshal this object into a DOM, which can then be converted to a variety of serial formats.
|
inline |
void GClasses::GRayTraceColor::set | ( | unsigned int | c | ) |
G3DReal GClasses::GRayTraceColor::a |
G3DReal GClasses::GRayTraceColor::b |
G3DReal GClasses::GRayTraceColor::g |
G3DReal GClasses::GRayTraceColor::r |