The Material class contains the implementation of a material used by 3D meshes for rendering different looking surfaces.
More...
#include <Material.h>
The Material class contains the implementation of a material used by 3D meshes for rendering different looking surfaces.
- See also
- Mesh
Neo::Material::Material |
( |
void |
| ) |
|
Neo::Material::Material |
( |
const Material & |
material | ) |
|
Neo::Material::~Material |
( |
void |
| ) |
|
Adds a texture pass to the internal array.
- Parameters
-
texture | The texture to append. |
combineMode | The combine mode for multi-texturing. |
mapChannel | The map channel to append the texture to. |
void Neo::Material::allocTexturesPass |
( |
unsigned int |
size | ) |
|
Allocates enough memory for all texture passes.
- Parameters
-
size | The number of texture passes to allocate. |
void Neo::Material::clearTexturesPass |
( |
void |
| ) |
|
Deletes all texture passes.
Returns the current blend mode.
- Returns
- the Blend mode.
- See also
- BLENDING_MODES
Vector3 Neo::Material::getCustomColor |
( |
void |
| ) |
const |
|
inline |
Returns the current custom color.
- Returns
- The current custom color.
float Neo::Material::getCustomValue |
( |
void |
| ) |
|
|
inline |
Returns the current custom value.
- Returns
- The current custom value.
Vector3 Neo::Material::getDiffuse |
( |
void |
| ) |
const |
|
inline |
Returns the current diffuse color.
- Returns
- The current diffuse color.
Vector3 Neo::Material::getEmit |
( |
void |
| ) |
const |
|
inline |
Returns the current emit color.
- Returns
- The current emit color.
FXRef* Neo::Material::getFXRef |
( |
void |
| ) |
|
|
inline |
float Neo::Material::getOpacity |
( |
void |
| ) |
|
|
inline |
Returns the current opacity.
- Returns
- The current opacity.
float Neo::Material::getShininess |
( |
void |
| ) |
|
|
inline |
Returns the current shininess.
- Returns
- The current shininess.
Vector3 Neo::Material::getSpecular |
( |
void |
| ) |
const |
|
inline |
Returns the current specular color.
- Returns
- The current specular color.
TexturePass* Neo::Material::getTexturePass |
( |
unsigned int |
id | ) |
|
|
inline |
Returns a texture pass by ID from the internal array.
- Parameters
-
id | The index into the array. |
unsigned int Neo::Material::getTexturesPassNumber |
( |
void |
| ) |
|
|
inline |
Returns the number of texture passes.
- Returns
- The number of texture passes.
int Neo::Material::getType |
( |
void |
| ) |
|
|
inline |
Returns the type of the material.
- Returns
- The material type.
FXRef* Neo::Material::getZFXRef |
( |
void |
| ) |
|
|
inline |
void Neo::Material::setCustomColor |
( |
const Vector3 & |
customColor | ) |
|
|
inline |
Sets the custom color.
The color is given as RGB between 0.0f and 1.0f.
- Parameters
-
void Neo::Material::setCustomValue |
( |
float |
customValue | ) |
|
|
inline |
Sets the custom value.
- Parameters
-
customValue | The new value. |
void Neo::Material::setDiffuse |
( |
const Vector3 & |
diffuse | ) |
|
|
inline |
Sets the diffuse color.
The color is given as RGB between 0.0f and 1.0f.
- Parameters
-
void Neo::Material::setEmit |
( |
const Vector3 & |
emit | ) |
|
|
inline |
Sets the emit color.
The color is given as RGB between 0.0f and 1.0f.
- Parameters
-
void Neo::Material::setFXRef |
( |
FXRef * |
FXRef | ) |
|
|
inline |
void Neo::Material::setOpacity |
( |
float |
opacity | ) |
|
|
inline |
Sets the opacity value.
An opacity value of 1.0f means fully opaque, 0.0 means fully transparent.
- Parameters
-
opacity | The opacity value. |
void Neo::Material::setShininess |
( |
float |
shininess | ) |
|
|
inline |
Sets the shininess value.
A higher shininess value gives smaller and brighter highlights.
- Parameters
-
shininess | The shininess value. |
void Neo::Material::setSpecular |
( |
const Vector3 & |
specular | ) |
|
|
inline |
Sets the specular color.
The color is given as RGB between 0.0f and 1.0f.
- Parameters
-
void Neo::Material::setType |
( |
int |
type | ) |
|
|
inline |
Sets the type of the material.
- Parameters
-
void Neo::Material::setZFXRef |
( |
FXRef * |
ZFXRef | ) |
|
|
inline |
The documentation for this class was generated from the following file: