![]() |
Kochol Game Engine
0.1.0
|
#include <RibbonTrail.h>
Public Member Functions | |
| RibbonTrail (SceneManager *sceneMan, const char *shaderName, const char *textureName, const math::Vector &textureRect, const gfx::Colorf &initialColor, const gfx::Colorf &finalColor, float width, float speed, float age, float chaosRatio) | |
| Constructor. | |
| ~RibbonTrail () | |
| Destructor. | |
| void | PreRender (float elapsedTime) |
| The jobs before rendering like culling and calculate position. | |
| void | Render () |
| Render the objects. | |
| void | PostRender () |
| The jobs after rendering. | |
| void | Draw (bool WithMaterial, bool WithTransform, bool bPosition, bool bNormalTexcoord, bool bTangentBinormal) |
| void | Start (const math::Vector &target) |
| void | Start () |
| void | Finish () |
| bool | Running () const |
| void | SetWidth (float width) |
| void | SetSpeed (float speed) |
| void | SetAge (float age) |
| void | SetInitialColor (const gfx::Colorf &color) |
| void | SetFinalColor (const gfx::Colorf &color) |
| void | SetChaosRatio (float chaosRatio) |
| float | GetWidth () const |
| float | GetSpeed () const |
| float | GetAge () const |
| float | GetChaosRatio () const |
| const char * | GetTextureName () const |
| const char * | GetShaderName () const |
| const math::Vector & | GetTextureRect () const |
| const gfx::Colorf & | GetInitialColor () const |
| const gfx::Colorf & | GetFinalColor () const |
Public Member Functions inherited from kge::sn::SceneNode | |
| SceneNode () | |
| Constructor. | |
| virtual | ~SceneNode () |
| Destructor. | |
| virtual void | AddChild (SceneNode *child) |
| Adds a node as child. | |
| virtual bool | AddEffect (efx::EffectType p, efx::Effect **ppOut) |
| virtual void | SetSceneManager (SceneManager *smgr) |
| Sets the scene manager and renderer pointer. | |
| virtual void | SetPosition (const math::Vector &v) |
| Set the position of the scenenode. | |
| virtual void | SetRotation (const math::Vector &v) |
| Set the rotation of the scenenode. | |
| virtual void | SetScale (const math::Vector &v) |
| Set the scale of the scenenode. | |
| virtual void | SetAutomaticCulling (bool isTrue) |
| Set Cutting Enable or Disable. | |
| virtual void | SetVisible (bool isVisible) |
| Set Visible Enable or Disable. | |
| virtual bool | GetVisible () |
| Get Visible. | |
| virtual bool | IsVisibleInFrame () |
| Is it visible in this frame? | |
| virtual const math::Vector & | GetPosition () const |
| Returns the node position. | |
| virtual const math::Vector & | GetRotation () const |
| Returns the node rotation. | |
| virtual const math::Vector & | GetScale () const |
| Returns the node scale. | |
| virtual math::Matrix * | GetAbsoluteMatrix () const |
| Get the absolute matrix. | |
| virtual math::Matrix * | GetFinalMatrix () |
| Get the final matrix. | |
| virtual u32 | GetMaterialCount () |
| Get the count of materials this node has. | |
| virtual gfx::Material * | GetMaterial (u32 Index) |
| virtual math::Sphere * | GetBoundingBox () |
| Returns the node bounding box. | |
| virtual math::AABB * | GetAxisAlignedBoundingBox () |
| Returns the node Axis aligned bounding box. | |
| virtual NodeType | GetType () const |
| Returns the node type. | |
| virtual void | RemoveChild (SceneNode *child) |
| virtual void | RemoveChildren () |
| Removes all children of this node. | |
| virtual const SceneNode * | GetParent () |
| Returns the node parent. | |
| virtual void | SetParent (SceneNode *parent) |
| Sets the node parent. | |
| virtual void | SetName (const char *name) |
| Sets the node name. | |
| virtual core::String * | GetName () |
| Gets the node name. | |
| virtual void | SetID (int ID) |
| Sets the node ID. | |
| virtual int | GetID () |
| Gets the node ID. | |
| void | EnableShadow (bool enable) |
| bool | HasShadow () const |
| virtual void | UpdateFinalMat () |
| Update final matrix. | |
Public Member Functions inherited from kge::KgeUnknown | |
| KgeUnknown () | |
| Constructor. | |
| virtual | ~KgeUnknown () |
| Destructor. | |
| virtual void | AddRef () |
| Add a reference to the object. | |
| virtual void | DecRef () |
| Decrease a reference from the object. if its reference count get 0 then the object will destroy. | |
| u32 | GetRefCount () |
| Return resource reference count. | |
| const char * | GetDebugText () |
| returns the instance debug text. | |
Private Member Functions | |
| RibbonTrail (const RibbonTrail &other) | |
| Copy constructor. | |
| RibbonTrail & | operator= (const RibbonTrail &other) |
| Assignment operator. | |
Private Attributes | |
| std::string | m_shaderName |
| std::string | m_textureName |
| gfx::Material * | m_pMaterial |
| RBuffer * | m_pRB |
| unsigned int | m_sizeOfData |
| unsigned int | m_bufferOffset |
| math::Vector | m_rect |
| gfx::Colorf | m_initialColor |
| gfx::Colorf | m_finalColor |
| float | m_width |
| float | m_speed |
| float | m_totalAge |
| float | m_currentAge |
| float | m_chaosRatio |
| float | m_elapsed |
| bool | m_running |
| unsigned int | m_maxCount |
| unsigned int | m_activeCount |
| math::Vector * | m_positions |
| gfx::Color * | m_colors |
| math::Vector | m_prevPos |
| unsigned int | m_index |
| bool | m_bolt |
Additional Inherited Members | |
Protected Member Functions inherited from kge::sn::SceneNode | |
| virtual bool | HasThisEffect (efx::EffectType p) |
Protected Attributes inherited from kge::sn::SceneNode | |
| core::String | m_sName |
| int | m_iID |
| SceneManager * | m_pSnMan |
| gfx::Renderer * | m_pRenderer |
| bool | m_bVis |
| bool | m_bAutoCulling |
| bool | m_bVisFrame |
| SceneNode * | m_pParent |
| std::vector< SceneNode * > | m_vChilds |
| std::vector< int > | m_vEffectType |
| std::vector< efx::Effect * > | m_vEffect |
| math::Matrix * | m_pAbsMat |
| math::Matrix * | m_pFinalMat |
| math::Vector | m_Position |
| math::Vector | m_Rotation |
| math::Vector | m_Scale |
| math::Sphere * | m_pBB |
| math::AABB * | m_pAABB |
| NodeType | m_eNodeType |
| bool | m_hasShadow |
Definition at line 24 of file RibbonTrail.h.
|
private |
Copy constructor.
| kge::sn::RibbonTrail::RibbonTrail | ( | SceneManager * | sceneMan, |
| const char * | shaderName, | ||
| const char * | textureName, | ||
| const math::Vector & | textureRect, | ||
| const gfx::Colorf & | initialColor, | ||
| const gfx::Colorf & | finalColor, | ||
| float | width, | ||
| float | speed, | ||
| float | age, | ||
| float | chaosRatio | ||
| ) |
Constructor.
| kge::sn::RibbonTrail::~RibbonTrail | ( | ) |
Destructor.
|
virtual |
Draw the node with/without its Materials and Transforms.
| WithMaterial | Draw it with its own materials or not? |
| WithMaterial | Draw it with its own Transformations or not? |
Implements kge::sn::SceneNode.
|
inline |
Definition at line 68 of file RibbonTrail.h.
|
inline |
Definition at line 98 of file RibbonTrail.h.
|
inline |
Definition at line 101 of file RibbonTrail.h.
|
inline |
Definition at line 116 of file RibbonTrail.h.
|
inline |
Definition at line 113 of file RibbonTrail.h.
|
inline |
Definition at line 107 of file RibbonTrail.h.
|
inline |
Definition at line 95 of file RibbonTrail.h.
|
inline |
Definition at line 104 of file RibbonTrail.h.
|
inline |
Definition at line 110 of file RibbonTrail.h.
|
inline |
Definition at line 92 of file RibbonTrail.h.
|
private |
Assignment operator.
|
virtual |
The jobs after rendering.
Implements kge::sn::SceneNode.
|
virtual |
The jobs before rendering like culling and calculate position.
Implements kge::sn::SceneNode.
|
virtual |
Render the objects.
Implements kge::sn::SceneNode.
|
inline |
Definition at line 71 of file RibbonTrail.h.
|
inline |
Definition at line 80 of file RibbonTrail.h.
|
inline |
Definition at line 89 of file RibbonTrail.h.
|
inline |
Definition at line 86 of file RibbonTrail.h.
|
inline |
Definition at line 83 of file RibbonTrail.h.
|
inline |
Definition at line 77 of file RibbonTrail.h.
|
inline |
Definition at line 74 of file RibbonTrail.h.
| void kge::sn::RibbonTrail::Start | ( | const math::Vector & | target | ) |
| void kge::sn::RibbonTrail::Start | ( | ) |
|
private |
Definition at line 137 of file RibbonTrail.h.
|
private |
Definition at line 143 of file RibbonTrail.h.
|
private |
Definition at line 124 of file RibbonTrail.h.
|
private |
Definition at line 132 of file RibbonTrail.h.
|
private |
Definition at line 139 of file RibbonTrail.h.
|
private |
Definition at line 131 of file RibbonTrail.h.
|
private |
Definition at line 133 of file RibbonTrail.h.
|
private |
Definition at line 127 of file RibbonTrail.h.
|
private |
Definition at line 142 of file RibbonTrail.h.
|
private |
Definition at line 126 of file RibbonTrail.h.
|
private |
Definition at line 136 of file RibbonTrail.h.
|
private |
Definition at line 121 of file RibbonTrail.h.
|
private |
Definition at line 138 of file RibbonTrail.h.
|
private |
Definition at line 122 of file RibbonTrail.h.
|
private |
Definition at line 141 of file RibbonTrail.h.
|
private |
Definition at line 125 of file RibbonTrail.h.
|
private |
Definition at line 134 of file RibbonTrail.h.
|
private |
Definition at line 119 of file RibbonTrail.h.
|
private |
Definition at line 123 of file RibbonTrail.h.
|
private |
Definition at line 129 of file RibbonTrail.h.
|
private |
Definition at line 120 of file RibbonTrail.h.
|
private |
Definition at line 130 of file RibbonTrail.h.
|
private |
Definition at line 128 of file RibbonTrail.h.