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. More...
#include <GRayTrace.h>
Public Member Functions | |
GRayTraceColor () | |
GRayTraceColor (GRayTraceColor *pThat) | |
GRayTraceColor (unsigned int c) | |
GRayTraceColor (G3DReal alpha, G3DReal red, G3DReal green, G3DReal blue) | |
GDomNode * | serialize (GDom *pDoc) |
Marshal this object into a DOM, which can then be converted to a variety of serial formats. | |
void | deserialize (GDomNode *pNode) |
Load this object from a DOM. | |
bool | isBlack () |
void | set (G3DReal alpha, G3DReal red, G3DReal green, G3DReal blue) |
void | set (unsigned int c) |
void | copy (GRayTraceColor *pThat) |
void | add (GRayTraceColor *pThat) |
void | clip () |
void | multiply (G3DReal mag) |
void | multiply (GRayTraceColor *pThat) |
unsigned int | color () |
void | makeSliderColor (float f, GRayTraceColor *pDiffuseColor) |
Public Attributes | |
G3DReal | a |
G3DReal | r |
G3DReal | g |
G3DReal | b |
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.
GClasses::GRayTraceColor::GRayTraceColor | ( | ) | [inline] |
GClasses::GRayTraceColor::GRayTraceColor | ( | GRayTraceColor * | pThat | ) | [inline] |
GClasses::GRayTraceColor::GRayTraceColor | ( | unsigned int | c | ) |
GClasses::GRayTraceColor::GRayTraceColor | ( | G3DReal | alpha, |
G3DReal | red, | ||
G3DReal | green, | ||
G3DReal | blue | ||
) | [inline] |
void GClasses::GRayTraceColor::add | ( | GRayTraceColor * | pThat | ) | [inline] |
void GClasses::GRayTraceColor::clip | ( | ) | [inline] |
unsigned int GClasses::GRayTraceColor::color | ( | ) |
void GClasses::GRayTraceColor::copy | ( | GRayTraceColor * | pThat | ) | [inline] |
void GClasses::GRayTraceColor::deserialize | ( | GDomNode * | pNode | ) |
Load this object from a DOM.
bool GClasses::GRayTraceColor::isBlack | ( | ) | [inline] |
void GClasses::GRayTraceColor::makeSliderColor | ( | float | f, |
GRayTraceColor * | pDiffuseColor | ||
) |
void GClasses::GRayTraceColor::multiply | ( | G3DReal | mag | ) | [inline] |
void GClasses::GRayTraceColor::multiply | ( | GRayTraceColor * | pThat | ) | [inline] |
Marshal this object into a DOM, which can then be converted to a variety of serial formats.
void GClasses::GRayTraceColor::set | ( | unsigned int | c | ) |
void GClasses::GRayTraceColor::set | ( | G3DReal | alpha, |
G3DReal | red, | ||
G3DReal | green, | ||
G3DReal | blue | ||
) | [inline] |