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

#include <Listener.h>

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

Public Member Functions

 Listener ()
 Constructor.
virtual ~Listener ()
 Destructor.
virtual void SetVelocity (const math::Vector &vel)=0
 Set the listener velocity.
virtual math::Vector GetVelocity () const
 Get the listener velocity.
virtual void SetOrientation (const math::Vector &up, const math::Vector &at)=0
 Set the listener orientation.
virtual void SetGain (float value)=0
 Set the listener gain (default 1)
virtual float GetGain () const
 Get the listener gain.
virtual void PreRender (float elapsedTime=0.0f)
 PreRender.
virtual void Render ()
 Render.
virtual void PostRender ()
 PostRender.
virtual void Draw (bool WithMaterial, bool WithTransform, bool bPosition=true, bool bNormalTexcoord=true, bool bTangentBinormal=true)
 Draw.
virtual void SetPosition (const math::Vector &v)=0
 SetPosition.
- 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 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 gfx::MaterialGetMaterial (u32 Index)
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

float m_fGain
math::Vector m_vVelocity
math::Vector m_vUp
math::Vector m_vAt
- 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

Additional Inherited Members

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

Detailed Description

Definition at line 18 of file Listener.h.

Constructor & Destructor Documentation

kge::sn::Listener::Listener ( )
inline

Constructor.

Definition at line 23 of file Listener.h.

References m_vAt, m_vUp, m_vVelocity, and kge::math::Vector::set().

virtual kge::sn::Listener::~Listener ( )
inlinevirtual

Destructor.

Definition at line 32 of file Listener.h.

Member Function Documentation

virtual void kge::sn::Listener::Draw ( bool  WithMaterial,
bool  WithTransform,
bool  bPosition = true,
bool  bNormalTexcoord = true,
bool  bTangentBinormal = true 
)
inlinevirtual

Draw.

Implements kge::sn::SceneNode.

Definition at line 61 of file Listener.h.

virtual float kge::sn::Listener::GetGain ( ) const
inlinevirtual

Get the listener gain.

Definition at line 47 of file Listener.h.

References m_fGain.

virtual math::Vector kge::sn::Listener::GetVelocity ( ) const
inlinevirtual

Get the listener velocity.

Definition at line 38 of file Listener.h.

References m_vVelocity.

virtual void kge::sn::Listener::PostRender ( )
inlinevirtual

PostRender.

Implements kge::sn::SceneNode.

Definition at line 58 of file Listener.h.

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

PreRender.

Implements kge::sn::SceneNode.

Definition at line 52 of file Listener.h.

virtual void kge::sn::Listener::Render ( )
inlinevirtual

Render.

Implements kge::sn::SceneNode.

Definition at line 55 of file Listener.h.

virtual void kge::sn::Listener::SetGain ( float  value)
pure virtual

Set the listener gain (default 1)

virtual void kge::sn::Listener::SetOrientation ( const math::Vector up,
const math::Vector at 
)
pure virtual

Set the listener orientation.

virtual void kge::sn::Listener::SetPosition ( const math::Vector v)
pure virtual

SetPosition.

Reimplemented from kge::sn::SceneNode.

virtual void kge::sn::Listener::SetVelocity ( const math::Vector vel)
pure virtual

Set the listener velocity.

Member Data Documentation

float kge::sn::Listener::m_fGain
protected

Definition at line 67 of file Listener.h.

Referenced by GetGain().

math::Vector kge::sn::Listener::m_vAt
protected

Definition at line 70 of file Listener.h.

Referenced by Listener().

math::Vector kge::sn::Listener::m_vUp
protected

Definition at line 69 of file Listener.h.

Referenced by Listener().

math::Vector kge::sn::Listener::m_vVelocity
protected

Definition at line 68 of file Listener.h.

Referenced by GetVelocity(), and Listener().


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