![]() |
Kochol Game Engine
0.1.0
|
#include <AnimatedTexture.h>
Public Member Functions | |
| AnimatedTexture (const AnimatedTextureParameters &p) | |
| Constructor. | |
| ~AnimatedTexture () | |
| 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 | Play (bool repeat=false) |
| void | Stop () |
| void | SetTexture (const char *filename) |
| void | SetShader (const char *filename) |
| void | SetVertexBuffer () |
| This function called by SceneManager only. | |
| void | SetTextureRect (const math::Vector &rect, unsigned int horizontalFrames, unsigned int verticalFrames) |
| rect.x = left, rect.y = top, rect.z = right, rect.w = bottom | |
| void | SetSize (const math::Vector &size) |
| Sets size of billboard. | |
| void | SetMiddleSize (const math::Vector &size) |
| void | SetDuration (float duration) |
| void | SetAngularVelocity (float angularVelocity) |
| Sets rotation speed. | |
| void | SetInitialColor (const gfx::Colorf &initialColor) |
| void | SetMiddleColor (const gfx::Colorf &middleColor) |
| void | SetFinalColor (const gfx::Colorf &finalColor) |
| void | SetFixedAxis (bool fixedAxis) |
| void | SetPositionOnly (bool positionOnly) |
| const char * | GetTextureName () const |
| const char * | GetShaderName () const |
| const math::Vector & | GetTextureRect () const |
| unsigned int | GetHorizontalImages () const |
| unsigned int | GetVerticalImages () const |
| math::Vector | GetSize () const |
| math::Vector | GetMiddleSize () const |
| float | GetDuration () const |
| float | GetAngularVelocity () const |
| const gfx::Colorf & | GetInitialColor () const |
| const gfx::Colorf & | GetMiddleColor () const |
| const gfx::Colorf & | GetFinalColor () const |
| bool | IsFixedAxis () const |
| bool | PositionOnly () 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 | |
| AnimatedTexture (const AnimatedTexture &other) | |
| Copy constructor. | |
| AnimatedTexture & | operator= (const AnimatedTexture &other) |
| Assignment operator. | |
Private Attributes | |
| std::string | m_textureName |
| std::string | m_shaderName |
| gfx::Material * | m_pMaterial |
| RBuffer * | m_pRB |
| unsigned int | m_bufferOffset |
| const kge::u32 | m_sizeOfData |
| math::Vector | m_rect |
| unsigned int | m_horizontalImages |
| unsigned int | m_verticalImages |
| math::Vector | m_size |
| math::Vector | m_middleSize |
| float | m_duration |
| float | m_angularVelocity |
| float | m_fRot |
| gfx::Colorf | m_initialColor |
| gfx::Colorf | m_middleColor |
| gfx::Colorf | m_finalColor |
| bool | m_repeat |
| float | m_elapsed |
| bool | m_running |
| bool | m_fixedAxis |
| bool | m_positionOnly |
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 60 of file AnimatedTexture.h.
|
private |
Copy constructor.
| kge::sn::AnimatedTexture::AnimatedTexture | ( | const AnimatedTextureParameters & | p | ) |
Constructor.
| kge::sn::AnimatedTexture::~AnimatedTexture | ( | ) |
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 157 of file AnimatedTexture.h.
|
inline |
Definition at line 154 of file AnimatedTexture.h.
|
inline |
Definition at line 166 of file AnimatedTexture.h.
|
inline |
Definition at line 142 of file AnimatedTexture.h.
|
inline |
Definition at line 160 of file AnimatedTexture.h.
|
inline |
Definition at line 163 of file AnimatedTexture.h.
| math::Vector kge::sn::AnimatedTexture::GetMiddleSize | ( | ) | const |
|
inline |
Definition at line 136 of file AnimatedTexture.h.
| math::Vector kge::sn::AnimatedTexture::GetSize | ( | ) | const |
|
inline |
Definition at line 133 of file AnimatedTexture.h.
|
inline |
Definition at line 139 of file AnimatedTexture.h.
|
inline |
Definition at line 145 of file AnimatedTexture.h.
|
inline |
Definition at line 169 of file AnimatedTexture.h.
|
private |
Assignment operator.
| void kge::sn::AnimatedTexture::Play | ( | bool | repeat = false | ) |
|
inline |
Definition at line 172 of file AnimatedTexture.h.
|
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 |
Sets rotation speed.
Definition at line 115 of file AnimatedTexture.h.
|
inline |
Definition at line 112 of file AnimatedTexture.h.
|
inline |
Definition at line 124 of file AnimatedTexture.h.
|
inline |
Definition at line 127 of file AnimatedTexture.h.
|
inline |
Definition at line 118 of file AnimatedTexture.h.
|
inline |
Definition at line 121 of file AnimatedTexture.h.
| void kge::sn::AnimatedTexture::SetMiddleSize | ( | const math::Vector & | size | ) |
|
inline |
Definition at line 130 of file AnimatedTexture.h.
| void kge::sn::AnimatedTexture::SetShader | ( | const char * | filename | ) |
| void kge::sn::AnimatedTexture::SetSize | ( | const math::Vector & | size | ) |
Sets size of billboard.
| void kge::sn::AnimatedTexture::SetTexture | ( | const char * | filename | ) |
| void kge::sn::AnimatedTexture::SetTextureRect | ( | const math::Vector & | rect, |
| unsigned int | horizontalFrames, | ||
| unsigned int | verticalFrames | ||
| ) |
rect.x = left, rect.y = top, rect.z = right, rect.w = bottom
| void kge::sn::AnimatedTexture::SetVertexBuffer | ( | ) |
This function called by SceneManager only.
| void kge::sn::AnimatedTexture::Stop | ( | ) |
|
private |
Definition at line 188 of file AnimatedTexture.h.
|
private |
Definition at line 180 of file AnimatedTexture.h.
|
private |
Definition at line 187 of file AnimatedTexture.h.
|
private |
Definition at line 194 of file AnimatedTexture.h.
|
private |
Definition at line 192 of file AnimatedTexture.h.
|
private |
Definition at line 196 of file AnimatedTexture.h.
|
private |
Definition at line 189 of file AnimatedTexture.h.
|
private |
Definition at line 183 of file AnimatedTexture.h.
|
private |
Definition at line 190 of file AnimatedTexture.h.
|
private |
Definition at line 191 of file AnimatedTexture.h.
|
private |
Definition at line 186 of file AnimatedTexture.h.
|
private |
Definition at line 177 of file AnimatedTexture.h.
|
private |
Definition at line 197 of file AnimatedTexture.h.
|
private |
Definition at line 179 of file AnimatedTexture.h.
|
private |
Definition at line 182 of file AnimatedTexture.h.
|
private |
Definition at line 193 of file AnimatedTexture.h.
|
private |
Definition at line 195 of file AnimatedTexture.h.
|
private |
Definition at line 176 of file AnimatedTexture.h.
|
private |
Definition at line 185 of file AnimatedTexture.h.
|
private |
Definition at line 181 of file AnimatedTexture.h.
|
private |
Definition at line 175 of file AnimatedTexture.h.
|
private |
Definition at line 184 of file AnimatedTexture.h.