Material - encapsulates OpenGL glMaterial state
Inheritance:
Public Methods
-
Material()
-
virtual Object* clone() const
-
virtual bool isSameKindAs(const Object* obj) const
-
const char* className() const
-
virtual const Type getType() const
-
virtual void setStateSetModes(StateSet& ds, const GLModeValue value) const
-
virtual void apply(State& state) const
-
inline void setColorMode(const ColorMode mode)
-
inline const ColorMode getColorMode() const
-
void setAmbient( const Face face, const Vec4& ambient )
-
const Vec4& getAmbient(const Face face) const
-
inline const bool getAmbientFrontAndBack() const
-
void setDiffuse( const Face face, const Vec4& diffuse )
-
const Vec4& getDiffuse(const Face face) const
-
inline const bool getDiffuseFrontAndBack() const
-
void setSpecular( const Face face, const Vec4& specular )
- Set specular value of specified face(s) of the material, valid specular[03] range is 00 to 10
-
const Vec4& getSpecular(const Face face) const
- Get the specular value for specified face
-
inline const bool getSpecularFrontAndBack() const
- Get the whether specular values are equal for front and back faces
-
void setEmission( const Face face, const Vec4& emission )
- Set emmision value of specified face(s) of the material, valid emmison[03] range is 00 to 10
-
const Vec4& getEmission(const Face face) const
- Get the emmsion value for specified face
-
inline const bool getEmissionFrontAndBack() const
- Get the whether emmision values are equal for front and back faces
-
void setShininess( const Face face, float shininess )
- Set shininess of specified face(s) of the material, valid shininess range is 00 to 10
-
const float getShininess(const Face face) const
- Get the shininess value for specified face
-
inline const bool getShininessFrontAndBack() const
- Get the whether shininess values are equal for front and back faces
-
void setTransparency(const Face face, float trans)
- Set the alpha value of ambient,diffuse,specular and emmission colors, of specified face, to 1-transparancy.
-
void setAlpha(const Face face, float alpha)
- Set the alpha value of ambient,diffuse,specular and emmission colors.
Public Members
-
enum Face
-
enum ColorMode
Protected Fields
-
ColorMode _colorMode
-
bool _ambientFrontAndBack
-
Vec4 _ambientFront
-
Vec4 _ambientBack
-
bool _diffuseFrontAndBack
-
Vec4 _diffuseFront
-
Vec4 _diffuseBack
-
bool _specularFrontAndBack
-
Vec4 _specularFront
-
Vec4 _specularBack
-
bool _emissionFrontAndBack
-
Vec4 _emissionFront
-
Vec4 _emissionBack
-
bool _shininessFrontAndBack
-
float _shininessFront
-
float _shininessBack
Protected Methods
-
virtual ~Material()
Public Methods
-
virtual void compile(State&) const
Public Members
-
typedef GLenum GLMode
-
typedef unsigned int GLModeValue
-
typedef unsigned int OverrideValue
-
enum Values
-
enum Type
Inherited from Object:
Public Methods
-
inline Referenced& operator = (Referenced&)
-
inline void ref() const
-
inline void unref() const
-
inline const int referenceCount() const
Protected Fields
-
mutable int _refCount
Documentation
Material - encapsulates OpenGL glMaterial state
- Material()
- virtual Object* clone() const
- virtual bool isSameKindAs(const Object* obj) const
- const char* className() const
- virtual const Type getType() const
- virtual void setStateSetModes(StateSet& ds, const GLModeValue value) const
- virtual void apply(State& state) const
- enum Face
- FRONT
- BACK
- FRONT_AND_BACK
- enum ColorMode
- AMBIENT
- DIFFUSE
- SPECULAR
- EMISSION
- AMBIENT_AND_DIFFUSE
- OFF
- inline void setColorMode(const ColorMode mode)
- inline const ColorMode getColorMode() const
- void setAmbient( const Face face, const Vec4& ambient )
- const Vec4& getAmbient(const Face face) const
- inline const bool getAmbientFrontAndBack() const
- void setDiffuse( const Face face, const Vec4& diffuse )
- const Vec4& getDiffuse(const Face face) const
- inline const bool getDiffuseFrontAndBack() const
- void setSpecular( const Face face, const Vec4& specular )
- Set specular value of specified face(s) of the material,
valid specular[03] range is 00 to 10
- const Vec4& getSpecular(const Face face) const
- Get the specular value for specified face
- inline const bool getSpecularFrontAndBack() const
- Get the whether specular values are equal for front and back faces
- void setEmission( const Face face, const Vec4& emission )
- Set emmision value of specified face(s) of the material,
valid emmison[03] range is 00 to 10
- const Vec4& getEmission(const Face face) const
- Get the emmsion value for specified face
- inline const bool getEmissionFrontAndBack() const
- Get the whether emmision values are equal for front and back faces
- void setShininess( const Face face, float shininess )
- Set shininess of specified face(s) of the material, valid shininess range is 00 to 10
- const float getShininess(const Face face) const
- Get the shininess value for specified face
- inline const bool getShininessFrontAndBack() const
- Get the whether shininess values are equal for front and back faces
- void setTransparency(const Face face, float trans)
- Set the alpha value of ambient,diffuse,specular and emmission colors,
of specified face, to 1-transparancy. Valid transparancy range is 0.0 to 1.0.
- void setAlpha(const Face face, float alpha)
- Set the alpha value of ambient,diffuse,specular and emmission colors.
Valid transparancy range is 0.0 to 1.0.
- virtual ~Material()
- ColorMode _colorMode
- bool _ambientFrontAndBack
- Vec4 _ambientFront
- Vec4 _ambientBack
- bool _diffuseFrontAndBack
- Vec4 _diffuseFront
- Vec4 _diffuseBack
- bool _specularFrontAndBack
- Vec4 _specularFront
- Vec4 _specularBack
- bool _emissionFrontAndBack
- Vec4 _emissionFront
- Vec4 _emissionBack
- bool _shininessFrontAndBack
- float _shininessFront
- float _shininessBack
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.