class Light


Public Fields

[more]GLenum glname
[more]Vector3D Position

Public Methods

[more] Light(GLenum glname)
Constructors / Destructors
[more] ~Light()
[more]void setName(const string &name)
Other public methods
[more]string getName()
[more]void SetAmbient(double r, double g, double b, double a)
const unsigned int LightIndex;
[more]void SetDiffuse(double r, double g, double b, double a)
[more]void SetSpecular(double r, double g, double b, double a)
[more]void SetPosition(double x, double y, double z)
[more]double* getAmbientColor(void)
[more]double* getDiffuseColor(void)
[more]double* getSpecularColor(void)
[more]void ShowPosition(void)
[more]void MakeDisplayList(void)
[more]GLuint getList()
[more]void setOnOff(bool b)
[more]void setShowPos(bool b)
[more]bool getOnOff(void)
[more]bool getShowPos(void)
[more]void glDraw()
[more]int LoadXML(char* file_name)
Load a light from a XML file.
[more]int ParseXML(xmlDocPtr doc, xmlNodePtr cur)
Parse a light node inside a XML file.

Private Fields

[more]string name
[more]GLuint glList
Vector3D Position;
[more]double ambient[4]
The display list
[more]double diffuse[4]
[more]double specular[4]
[more]bool OnOff
[more]bool ShowPos


Documentation

o Light(GLenum glname)
Constructors / Destructors

o ~Light()

ovoid setName(const string &name)
Other public methods

ostring getName()

oGLenum glname

ovoid SetAmbient(double r, double g, double b, double a)
const unsigned int LightIndex;

ovoid SetDiffuse(double r, double g, double b, double a)

ovoid SetSpecular(double r, double g, double b, double a)

ovoid SetPosition(double x, double y, double z)

odouble* getAmbientColor(void)

odouble* getDiffuseColor(void)

odouble* getSpecularColor(void)

ovoid ShowPosition(void)

ovoid MakeDisplayList(void)

oGLuint getList()

ovoid setOnOff(bool b)

ovoid setShowPos(bool b)

obool getOnOff(void)

obool getShowPos(void)

ovoid glDraw()

oint LoadXML(char* file_name)
Load a light from a XML file. (0 if OK, 1 if ERROR)

oint ParseXML(xmlDocPtr doc, xmlNodePtr cur)
Parse a light node inside a XML file. (0 if OK, 1 if ERROR)

oVector3D Position

ostring name

oGLuint glList
Vector3D Position;

odouble ambient[4]
The display list

odouble diffuse[4]

odouble specular[4]

obool OnOff

obool ShowPos


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.