Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::sn::Decal Class Reference

#include <Decal.h>

Inheritance diagram for kge::sn::Decal:
kge::sn::SceneNode kge::KgeUnknown

Public Member Functions

 Decal ()
 Constructor.
 ~Decal ()
 Destructor.
virtual void PreRender (float elapsedTime=0.0f)
 The jobs before rendering like culling and calculate position.
virtual void Render ()
 Render the objects.
virtual void PostRender ()
 The jobs after rendering.
virtual void Draw (bool WithMaterial, bool WithTransform, bool bPosition, bool bNormalTexcoord, bool bTangentBinormal)
virtual gfx::MaterialGetMaterial (u32 Index)
void SetRotate (float Radian)
 Rotates the decal.
void SetScale (float Scale)
 Scales the decal the value must be between 0.0 and 100.0.
void SetFadeoutTime (float fadeoutTime)
- 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::VectorGetPosition () const
 Returns the node position.
virtual const math::VectorGetRotation () const
 Returns the node rotation.
virtual const math::VectorGetScale () const
 Returns the node scale.
virtual math::MatrixGetAbsoluteMatrix () const
 Get the absolute matrix.
virtual math::MatrixGetFinalMatrix ()
 Get the final matrix.
virtual u32 GetMaterialCount ()
 Get the count of materials this node has.
virtual math::SphereGetBoundingBox ()
 Returns the node bounding box.
virtual math::AABBGetAxisAlignedBoundingBox ()
 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 SceneNodeGetParent ()
 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::StringGetName ()
 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.

Protected Attributes

gfx::Vertex3Tm_pVertices
gfx::VertexType m_eVertexType
u16m_pIndices
gfx::HardwareBuffer ** m_ppVertexBuffer
gfx::HardwareBuffer ** m_ppIndexBuffer
int m_iIbOffset
int m_iVbOffset
u32 m_iIndex
TileTerrainm_pTerrain
gfx::Materialm_pMaterial
math::Matrixm_pMatTexture
int m_iVCount
int m_iICount
int m_iSizeX
int m_iSizeY
float m_fU
float m_fV
float m_fRot
float m_fScale
bool m_bPosChanged
float m_totalTime
float m_elapsedTime
float m_alpha
- Protected Attributes inherited from kge::sn::SceneNode
core::String m_sName
int m_iID
SceneManagerm_pSnMan
gfx::Rendererm_pRenderer
bool m_bVis
bool m_bAutoCulling
bool m_bVisFrame
SceneNodem_pParent
std::vector< SceneNode * > m_vChilds
std::vector< int > m_vEffectType
std::vector< efx::Effect * > m_vEffect
math::Matrixm_pAbsMat
math::Matrixm_pFinalMat
math::Vector m_Position
math::Vector m_Rotation
math::Vector m_Scale
math::Spherem_pBB
math::AABBm_pAABB
NodeType m_eNodeType
bool m_hasShadow

Friends

class TileTerrain

Additional Inherited Members

- Protected Member Functions inherited from kge::sn::SceneNode
virtual bool HasThisEffect (efx::EffectType p)

Detailed Description

Definition at line 23 of file Decal.h.

Constructor & Destructor Documentation

kge::sn::Decal::Decal ( )

Constructor.

kge::sn::Decal::~Decal ( )

Destructor.

Member Function Documentation

virtual void kge::sn::Decal::Draw ( bool  WithMaterial,
bool  WithTransform,
bool  bPosition,
bool  bNormalTexcoord,
bool  bTangentBinormal 
)
virtual

Draw the node with/without its Materials and Transforms.

Parameters
WithMaterialDraw it with its own materials or not?
WithMaterialDraw it with its own Transformations or not?

Implements kge::sn::SceneNode.

virtual gfx::Material* kge::sn::Decal::GetMaterial ( u32  Index)
inlinevirtual

Get the node material by its index.

Parameters
IndexThe material index. Some nodes have more than one material.

Reimplemented from kge::sn::SceneNode.

Definition at line 51 of file Decal.h.

virtual void kge::sn::Decal::PostRender ( )
virtual

The jobs after rendering.

Implements kge::sn::SceneNode.

virtual void kge::sn::Decal::PreRender ( float  elapsedTime = 0.0f)
virtual

The jobs before rendering like culling and calculate position.

Implements kge::sn::SceneNode.

virtual void kge::sn::Decal::Render ( )
virtual

Render the objects.

Implements kge::sn::SceneNode.

void kge::sn::Decal::SetFadeoutTime ( float  fadeoutTime)
void kge::sn::Decal::SetRotate ( float  Radian)

Rotates the decal.

void kge::sn::Decal::SetScale ( float  Scale)

Scales the decal the value must be between 0.0 and 100.0.

Friends And Related Function Documentation

friend class TileTerrain
friend

Definition at line 25 of file Decal.h.

Member Data Documentation

float kge::sn::Decal::m_alpha
protected

Definition at line 96 of file Decal.h.

bool kge::sn::Decal::m_bPosChanged
protected

Definition at line 92 of file Decal.h.

float kge::sn::Decal::m_elapsedTime
protected

Definition at line 95 of file Decal.h.

gfx::VertexType kge::sn::Decal::m_eVertexType
protected

Definition at line 69 of file Decal.h.

float kge::sn::Decal::m_fRot
protected

Definition at line 88 of file Decal.h.

float kge::sn::Decal::m_fScale
protected

Definition at line 88 of file Decal.h.

float kge::sn::Decal::m_fU
protected

Definition at line 88 of file Decal.h.

float kge::sn::Decal::m_fV
protected

Definition at line 88 of file Decal.h.

int kge::sn::Decal::m_iIbOffset
protected

Definition at line 75 of file Decal.h.

int kge::sn::Decal::m_iICount
protected

Definition at line 84 of file Decal.h.

u32 kge::sn::Decal::m_iIndex
protected

Definition at line 77 of file Decal.h.

int kge::sn::Decal::m_iSizeX
protected

Definition at line 84 of file Decal.h.

int kge::sn::Decal::m_iSizeY
protected

Definition at line 84 of file Decal.h.

int kge::sn::Decal::m_iVbOffset
protected

Definition at line 75 of file Decal.h.

int kge::sn::Decal::m_iVCount
protected

Definition at line 84 of file Decal.h.

u16* kge::sn::Decal::m_pIndices
protected

Definition at line 71 of file Decal.h.

gfx::Material* kge::sn::Decal::m_pMaterial
protected

Definition at line 80 of file Decal.h.

math::Matrix* kge::sn::Decal::m_pMatTexture
protected

Definition at line 82 of file Decal.h.

gfx::HardwareBuffer ** kge::sn::Decal::m_ppIndexBuffer
protected

Definition at line 73 of file Decal.h.

gfx::HardwareBuffer** kge::sn::Decal::m_ppVertexBuffer
protected

Definition at line 73 of file Decal.h.

TileTerrain* kge::sn::Decal::m_pTerrain
protected

Definition at line 78 of file Decal.h.

gfx::Vertex3T* kge::sn::Decal::m_pVertices
protected

Definition at line 67 of file Decal.h.

float kge::sn::Decal::m_totalTime
protected

Definition at line 94 of file Decal.h.


The documentation for this class was generated from the following file: