
#include <gzMaterial.h>
Inheritance diagram for gzMaterial:

Public Member Functions | |
| GZ_DECLARE_TYPE_INTERFACE_EXPORT (1) | |
| gzMaterial (const gzString &name=GZ_EMPTY_STRING) | |
| Constructor. | |
| virtual | ~gzMaterial () |
| Destructor. | |
| virtual gzVoid | activate (gzContext *context, gzEnum face) |
| gzVoid | useColorAsMaterial (gzBool on, gzEnum mode=GZ_AMBIENT_AND_DIFFUSE) |
| gzVoid | setAmbient (const gzRGBA &matcol) |
| Sets the ambient property for the material. | |
| gzVoid | setDiffuse (const gzRGBA &matcol) |
| Sets the diffuse property for the material. | |
| gzVoid | setSpecular (const gzRGBA &matcol) |
| Sets the specular property for the material. | |
| gzVoid | setEmission (const gzRGBA &matcol) |
| Sets the emissive light for the material. | |
| gzVoid | setAmbient (gzFloat red=1, gzFloat green=1, gzFloat blue=1, gzFloat alpha=1) |
| Sets the ambient property for the material. | |
| gzVoid | setDiffuse (gzFloat red=1, gzFloat green=1, gzFloat blue=1, gzFloat alpha=1) |
| Sets the diffuse property for the material. | |
| gzVoid | setSpecular (gzFloat red=1, gzFloat green=1, gzFloat blue=1, gzFloat alpha=1) |
| Sets the specular property for the material. | |
| gzVoid | setEmission (gzFloat red=1, gzFloat green=1, gzFloat blue=1, gzFloat alpha=1) |
| Sets the emissive light for the material. | |
| gzVoid | setShininess (gzFloat shininess) |
| Sets the size of the highlight. | |
| gzVoid | setMaterialAlpha (gzFloat value) |
| Specifies the alpha value for the material. | |
| gzRGBA & | getAmbient () |
| Returns the ambient color. | |
| gzRGBA & | getDiffuse () |
| Returns the diffuse color. | |
| gzRGBA & | getSpecular () |
| Returns the specular color. | |
| gzRGBA & | getEmission () |
| Returns the emmision color. | |
| gzFloat | getShininess () |
| Returns the shininess factor. | |
| virtual gzReference * | clone () const |
| Clone interface. | |
| virtual gzBool | useDeepCopy () |
| Overrides the gzReference useDeepCopyMode() to use gzNodeCopyMode. | |
| gzBool | operator== (const gzMaterial &right) const |
| Equal operator. | |
Static Public Member Functions | |
| static gzVoid | deactivate (gzContext *context) |
cube.cpp, materialDemo.cpp, and tree.cpp.
Definition at line 51 of file gzMaterial.h.
|
|
Constructor. It is possible to set a name for the material. |
|
|
Destructor.
Definition at line 63 of file gzMaterial.h. |
|
||||||||||||
|
|
|
|
Clone interface.
Reimplemented from gzObject. |
|
|
|
|
|
Returns the ambient color.
|
|
|
Returns the diffuse color.
|
|
|
Returns the emmision color.
|
|
|
Returns the shininess factor.
|
|
|
Returns the specular color.
|
|
|
Reimplemented from gzObject. |
|
|
Equal operator. Returns true if the two materials are equal. |
|
||||||||||||||||||||
|
Sets the ambient property for the material.
The ambient material defines how the ambient light is reflected. |
|
|
Sets the ambient property for the material.
The ambient material defines how the ambient light is reflected.
|
|
||||||||||||||||||||
|
Sets the diffuse property for the material.
The diffuse material defines how the diffuse light is reflected. |
|
|
Sets the diffuse property for the material.
The diffuse material defines how the diffuse light is reflected.
|
|
||||||||||||||||||||
|
Sets the emissive light for the material.
|
|
|
Sets the emissive light for the material.
|
|
|
Specifies the alpha value for the material. The ambient, diffuse, specular and emission gets this alpha value. |
|
|
Sets the size of the highlight.
|
|
||||||||||||||||||||
|
Sets the specular property for the material.
The specular material defines how the specular light is reflected. |
|
|
Sets the specular property for the material.
The specular material defines how the specular light is reflected.
|
|
||||||||||||
|
|
|
|
Overrides the gzReference useDeepCopyMode() to use gzNodeCopyMode. Depending on what copy mode you have set a clone of a gzNode will either return a new instance of a gzMaterial or a shared instance. Reimplemented from gzReference. |