
Public Member Functions | |
| int | AddTextureMaterial (class vtImage *pImage, bool bCulling, bool bLighting, bool bTransp=false, bool bAdditive=false, float fAmbient=0.0f, float fDiffuse=1.0f, float fAlpha=1.0f, float fEmissive=0.0f, bool bTexGen=false, bool bClamp=false, bool bMipMap=false) |
| int | AddTextureMaterial2 (const char *fname, bool bCulling, bool bLighting, bool bTransp=false, bool bAdditive=false, float fAmbient=0.0f, float fDiffuse=1.0f, float fAlpha=1.0f, float fEmissive=0.0f, bool bTexGen=false, bool bClamp=false, bool bMipMap=false) |
| int | AddRGBMaterial (const RGBf &diffuse, const RGBf &ambient, bool bCulling=true, bool bLighting=true, bool bWireframe=false, float fAlpha=1.0f, float fEmissive=0.0f) |
| int | AddRGBMaterial1 (const RGBf &diffuse, bool bCulling=true, bool bLighting=true, bool bWireframe=false, float fAlpha=1.0f, float fEmissive=0.0f) |
| void | AddShadowMaterial (float fOpacity) |
| int | FindByDiffuse (const RGBAf &rgba) const |
| int | FindByImage (const vtImage *image) const |
| void | CopyFrom (vtMaterialArrayBase *pFromMats) |
|
||||||||||||||||||||||||||||||||
|
Create and add a simple colored material. This method takes diffuse and ambient color and let you control several other aspects of the material.
|
|
||||||||||||||||||||||||||||
|
Create and add a simple colored material. This method takes diffuse color and let you control several other aspects of the material. Ambient color will be assumed to a be a dimmer shade of the supplied diffuse color (diffuse / 4).
|
|
|
Create and add a "shadow" material, which is a black material with transparency, suitable for drawing a shadow under an object.
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Create and add a simple textured material. This method takes a vtImage and let you control many other aspects of the material. Only the first three parameters are required, the rest will be assumed with default values if desired.
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Create and add a simple textured material. This method takes a a filename of the texture image to use. See AddTextureMaterial() for a description of the parameters, which lets you control many other aspects of the material.
|
|
|
Copies all the materials from one vtMaterialArray to another. The materials copied from the source are simply appending to this array. |
|
|
Find a material in an array by looking for a specific diffuse color.
|
|
|
Find a material in an array by looking for a specific texture image.
|
1.4.5