GClasses
|
Represents a source of light in a ray-tracing scene.
#include <GRayTrace.h>
Public Types |
Public Member Functions | |
GRayTraceLight (G3DReal r, G3DReal g, G3DReal b) | |
GRayTraceLight (GDomNode *pNode) | |
virtual | ~GRayTraceLight () |
virtual void | colorContribution (GRayTraceScene *pScene, GRayTraceRay *pRay, GRayTraceMaterial *pMaterial, bool bSpecular)=0 |
virtual LightType | lightType () const =0 |
virtual GDomNode * | serialize (GDom *pDoc, const GRayTraceScene *pScene) const =0 |
Static Public Member Functions | |
static GRayTraceLight * | deserialize (GDomNode *pNode, GRayTraceScene *pScene) |
Protected Member Functions | |
GDomNode * | baseDomNode (GDom *pDoc) const |
Protected Attributes | |
GRayTraceColor | m_color |
GClasses::GRayTraceLight::GRayTraceLight | ( | GDomNode * | pNode | ) |
|
virtual |
|
pure virtual |
Implemented in GClasses::GRayTraceAreaLight, GClasses::GRayTracePointLight, and GClasses::GRayTraceDirectionalLight.
|
static |
|
pure virtual |
Implemented in GClasses::GRayTraceAreaLight, GClasses::GRayTracePointLight, and GClasses::GRayTraceDirectionalLight.
|
pure virtual |
Implemented in GClasses::GRayTraceAreaLight, GClasses::GRayTracePointLight, and GClasses::GRayTraceDirectionalLight.
|
protected |