SuperTuxKart
|
A track object representation that consists of a billboard scene node. More...
#include <track_object_presentation.hpp>
Public Member Functions | |
TrackObjectPresentationBillboard (const XMLNode &xml_node, scene::ISceneNode *parent) | |
virtual void | updateGraphics (float dt) OVERRIDE |
![]() | |
TrackObjectPresentationSceneNode (const XMLNode &xml_node) | |
Constructor based on data from xml. More... | |
TrackObjectPresentationSceneNode (const core::vector3df &xyz, const core::vector3df &hpr, const core::vector3df &scale, scene::ISceneNode *node=NULL) | |
Constructor based on a transform. More... | |
virtual const core::vector3df & | getPosition () const OVERRIDE |
Returns the position of this TrackObjectPresentation. More... | |
virtual const core::vector3df | getAbsolutePosition () const OVERRIDE |
Returns a copy of the initial position. More... | |
virtual const core::vector3df | getAbsoluteCenterPosition () const OVERRIDE |
virtual const core::vector3df & | getRotation () const OVERRIDE |
Returns the initial rotation. More... | |
virtual const core::vector3df & | getScale () const OVERRIDE |
Returns the initial scale. More... | |
virtual void | move (const core::vector3df &xyz, const core::vector3df &hpr, const core::vector3df &scale, bool isAbsoluteCoord) OVERRIDE |
virtual void | setEnable (bool enabled) OVERRIDE |
virtual void | reset () OVERRIDE |
scene::ISceneNode * | getNode () |
Returns a pointer to the scene node. More... | |
const scene::ISceneNode * | getNode () const |
Returns a pointer to the scene node, const version. More... | |
bool | isAlwaysHidden () const |
![]() | |
TrackObjectPresentation (const XMLNode &xml_node) | |
TrackObjectPresentation (const core::vector3df &xyz, const core::vector3df &hpr=core::vector3df(0, 0, 0), const core::vector3df &scale=core::vector3df(0, 0, 0)) | |
virtual void | update (float dt) |
Private Attributes | |
bool | m_fade_out_when_close |
To make the billboard disappear when close to the camera. More... | |
float | m_fade_out_start |
float | m_fade_out_end |
Additional Inherited Members | |
![]() | |
scene::ISceneNode * | m_node |
A pointer to the scene node of this object. More... | |
bool | m_force_always_hidden |
![]() | |
core::vector3df | m_init_xyz |
The initial XYZ position of the object. More... | |
core::vector3df | m_init_hpr |
The initial hpr of the object. More... | |
core::vector3df | m_init_scale |
The initial scale of the object. More... | |
A track object representation that consists of a billboard scene node.
|
private |
To make the billboard disappear when close to the camera.
Useful for light halos: instead of "colliding" with the camera and suddenly disappearing when clipped by frustum culling, it will gently fade out.