
Much of the functionality of vtMaterial is inherited from its base class, vtMaterialBase.
Public Member Functions | |
| void | SetDiffuse (float r, float g, float b, float a=1.0f) |
| RGBAf | GetDiffuse () const |
| void | SetSpecular (float r, float g, float b) |
| RGBf | GetSpecular () const |
| void | SetAmbient (float r, float g, float b) |
| RGBf | GetAmbient () const |
| void | SetEmission (float r, float g, float b) |
| RGBf | GetEmission () const |
| void | SetCulling (bool bCulling) |
| bool | GetCulling () const |
| void | SetLighting (bool bLighting) |
| bool | GetLighting () const |
| void | SetTransparent (bool bOn, bool bAdd=false) |
| bool | GetTransparent () const |
| void | SetWireframe (bool bOn) |
| bool | GetWireframe () const |
| void | SetTexture (vtImage *pImage) |
| bool | SetTexture2 (const char *szFilename) |
| vtImage * | GetTexture () const |
| void | ModifiedTexture () |
| void | SetClamp (bool bClamp) |
| bool | GetClamp () const |
| void | SetMipMap (bool bMipMap) |
| bool | GetMipMap () const |
|
|
Get the ambient color of this material. Implements vtMaterialBase. |
|
|
Get the texture clamping property of this material. |
|
|
Get the backface culling property of this material. Implements vtMaterialBase. |
|
|
Get the diffuse color of this material. Implements vtMaterialBase. |
|
|
Get the emissive color of this material. Implements vtMaterialBase. |
|
|
Get the lighting property of this material. Implements vtMaterialBase. |
|
|
Get the texture mipmapping property of this material. |
|
|
Get the specular color of this material. Implements vtMaterialBase. |
|
|
Returns the texture (image) associated with a material. |
|
|
Get the transparent property of this material. Implements vtMaterialBase. |
|
|
Get the wireframe property of this material. |
|
|
Call this method to tell vtlib that you have modified the contents of a texture so it needs to be sent again to the graphics card. |
|
||||||||||||||||
|
Set the ambient color of this material. Implements vtMaterialBase. |
|
|
Set the texture clamping property for this material. |
|
|
Set the backface culling property of this material. Implements vtMaterialBase. |
|
||||||||||||||||||||
|
Set the diffuse color of this material.
Implements vtMaterialBase. |
|
||||||||||||||||
|
Set the emissive color of this material. Implements vtMaterialBase. |
|
|
Set the lighting property of this material. Implements vtMaterialBase. |
|
|
Set the texture mipmapping property for this material. |
|
||||||||||||||||
|
Set the specular color of this material. Implements vtMaterialBase. |
|
|
Set the texture for this material. "Note, If the mode is set USE_IMAGE_DATA_FORMAT, USE_ARB_COMPRESSION, USE_S3TC_COMPRESSION the internalFormat is automatically selected, and will overwrite the previous _internalFormat. Implements vtMaterialBase. |
|
|
Loads and sets the texture for a material. |
|
||||||||||||
|
Set the transparent property of this material.
Implements vtMaterialBase. |
|
|
Set the wireframe property of this material.
|
1.4.5