List of all members.
Detailed Description
Billboards - also called "Sprites" - are used for special effects like fire, sparks, rain, lense flares etc. A Billboard is always faced to the camera like a 2D image but it uses the 3D space (position with X, Y, Z). A Billboard normally have only one texture but it can also be just a colored quad (two triangles in form of a square). Inform yourself about alpha-blending that you know how to use the blending methods which are mostly used for Billboards but also available for normal 3D models.
Constructor & Destructor Documentation
sp::scene::Billboard::~Billboard |
( |
|
) |
[virtual] |
Member Function Documentation
Billboard * sp::scene::Billboard::copy |
( |
|
) |
const |
void sp::scene::Billboard::createDefaultMeshBuffer |
( |
|
) |
[static, protected] |
void sp::scene::Billboard::deleteDefaultMeshBuffer |
( |
|
) |
[static, protected] |
dim::point2df sp::scene::Billboard::getBasePosition |
( |
|
) |
const [inline] |
video::color sp::scene::Billboard::getColor |
( |
|
) |
const [inline] |
s32 sp::scene::Billboard::getHardwareInstancing |
( |
|
) |
const [inline] |
void sp::scene::Billboard::render |
( |
|
) |
[virtual] |
Renders the object. In this case rendering does not only mean drawing a 3d mesh. It can also be a light source.
- Returns:
- True if the object has been rendered. Otherwise the object has been sorted out by frustum culling.
Implements sp::scene::MaterialNode.
void sp::scene::Billboard::setBasePosition |
( |
const dim::point2df & |
Position |
) |
[inline] |
Sets the billboard's base position.
- Parameters:
-
| Position,: | Position to which the sprite origin is to be translated. |
void sp::scene::Billboard::setColor |
( |
const video::color & |
Color |
) |
[inline] |
Sets the billboard's color.
void sp::scene::Billboard::setHardwareInstancing |
( |
s32 |
InstanceCount |
) |
[inline] |
Sets the hardware instances. For more information see the MeshBuffer class.
void sp::scene::Billboard::setTexture |
( |
video::Texture * |
BaseTexture |
) |
[inline] |
Sets the base texture (may be 0).
void sp::scene::Billboard::updateTransformation |
( |
|
) |
[virtual] |
Updates the objects transformation and sets the depth distance.
TODO! -> use extra rotation float member
Reimplemented from sp::scene::RenderNode.
Friends And Related Function Documentation
friend class SimpleSceneManager [friend] |
Member Data Documentation
The documentation for this class was generated from the following files:
- D:/SoftwareEntwicklung/C++/HLC/Tools/SoftPixelEngine/repository/sources/SceneGraph/spSceneBillboard.hpp
- D:/SoftwareEntwicklung/C++/HLC/Tools/SoftPixelEngine/repository/sources/SceneGraph/spSceneBillboard.cpp