List of all members.
Detailed Description
MaterialNode objects are the root of Mesh, Billboard and Terrain objects. The main content of these objects is the MaterialStates member with all its interface functions. It also has a shader object.
Constructor & Destructor Documentation
sp::scene::MaterialNode::~MaterialNode |
( |
|
) |
[virtual] |
sp::scene::MaterialNode::MaterialNode |
( |
const ENodeTypes |
Type |
) |
[protected] |
Member Function Documentation
bool sp::scene::MaterialNode::compare |
( |
const MaterialNode * |
Other |
) |
const [virtual] |
bool sp::scene::MaterialNode::getMaterialEnable |
( |
|
) |
const [inline] |
Returns true if the material is enabled otherwise false. By default true.
Returns pointer to the ShaderClass object.
virtual void sp::scene::MaterialNode::render |
( |
|
) |
[pure virtual] |
Sets the mesh's material. In materials many configurations are stored. One of these are Diffuse or Ambient colors, ZBuffer- or Lighitng enabling and a Shader object. The most of these things can be set by special functions but you have more controll of the material by setting it directly. The material affects the whole mesh (each surface). If you want a mesh with multiple materials you have to created multiple Mesh object and one of them has to be the parent object of the others (use "setParent").
- Parameters:
-
[in] | Material | Pointer to a MaterialStates object which holds the whole material's data. |
void sp::scene::MaterialNode::setMaterialEnable |
( |
bool |
Enable |
) |
[inline] |
Enables or disables the material. If disabled the last - in renderer set - material will be used.
void sp::scene::MaterialNode::setShader |
( |
video::Shader * |
ShaderObject |
) |
[inline] |
Sets the shader object. Shader can be used for high performance graphics effects. e.g. water reflection and refraction (more about shaders in the Shader class).
- Parameters:
-
| ShaderObject,: | Pointer to a Shader object. |
void sp::scene::MaterialNode::setShaderClass |
( |
video::ShaderClass * |
ShaderObject |
) |
[inline] |
Sets the shader class directly.
Friends And Related Function Documentation
bool cmpMeshesDefault |
( |
Mesh *& |
obj1, |
|
|
Mesh *& |
obj2 | |
|
) |
| | [friend] |
bool cmpMeshesFast |
( |
Mesh *& |
obj1, |
|
|
Mesh *& |
obj2 | |
|
) |
| | [friend] |
Member Data Documentation
The documentation for this class was generated from the following files:
- D:/SoftwareEntwicklung/C++/HLC/Tools/SoftPixelEngine/repository/sources/SceneGraph/spMaterialNode.hpp
- D:/SoftwareEntwicklung/C++/HLC/Tools/SoftPixelEngine/repository/sources/SceneGraph/spMaterialNode.cpp