class Material


Public Methods

[more] Material()
[more] ~Material()
Material(unsigned int i);
[more]void SetName(const string &name)
[more]string GetName()
[more]void SetAmbient(float r, float g, float b, float a)
[more]void SetDiffuse(float r, float g, float b, float a)
[more]void SetEmission(float r, float g, float b, float a)
[more]void SetSpecular(float r, float g, float b, float a)
[more]void SetShininess(float s)
[more]void ShowMaterialProperties(void)
[more]int ParseXML(xmlDocPtr doc, xmlNodePtr cur)
Parse a material node inside a XML file.
[more]void MakeDisplayList(void)
[more]void GLDraw(void)
[more]GLuint getList()

Private Fields

[more]string Name
[more]GLuint glList
[more]float diffuse[4]
The display list
[more]float ambient[4]
[more]float emission[4]
[more]float specular[4]
[more]float shininess


Documentation

o Material()

o ~Material()
Material(unsigned int i);

ovoid SetName(const string &name)

ostring GetName()

ovoid SetAmbient(float r, float g, float b, float a)

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

ovoid SetEmission(float r, float g, float b, float a)

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

ovoid SetShininess(float s)

ovoid ShowMaterialProperties(void)

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

ovoid MakeDisplayList(void)

ovoid GLDraw(void)

oGLuint getList()

ostring Name

oGLuint glList

ofloat diffuse[4]
The display list

ofloat ambient[4]

ofloat emission[4]

ofloat specular[4]

ofloat shininess


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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