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

#include <DynamicTriangleMesh.h>

Inheritance diagram for kge::ph::DynamicTriangleMesh:
kge::KgeUnknown

Public Member Functions

 DynamicTriangleMesh ()
 Constructor.
 ~DynamicTriangleMesh ()
 Destructor.
void Init (sn::TileTerrain *pTerrain)
 Init the class with a tile terrain class.
int IntersectRay (math::Ray *pRay)
 Checks the ray intersection with triangle mesh and returns the face ID.
int IntersectRay (math::Ray *pRay, int &OutClosestPointIndex)
 Checks the ray intersection with triangle mesh and returns the face ID and Closest point index.
int IntersectRayClosestFace (math::Ray *pRay, int &OutClosestPointIndex, math::Vector &vp)
 Checks the ray intersection with triangle mesh and returns the nearest face ID and Closest point index.
- 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

math::Trianglem_pTris
int m_iTriCount
int m_iAabbCount
int m_iUTriCopunt
int m_iVTriCount
math::AABBm_pAABB

Additional Inherited Members

- Protected Member Functions inherited from kge::KgeUnknown
void SetDebugText (char *text)

Detailed Description

Definition at line 21 of file DynamicTriangleMesh.h.

Constructor & Destructor Documentation

kge::ph::DynamicTriangleMesh::DynamicTriangleMesh ( )

Constructor.

kge::ph::DynamicTriangleMesh::~DynamicTriangleMesh ( )

Destructor.

Member Function Documentation

void kge::ph::DynamicTriangleMesh::Init ( sn::TileTerrain pTerrain)

Init the class with a tile terrain class.

int kge::ph::DynamicTriangleMesh::IntersectRay ( math::Ray pRay)

Checks the ray intersection with triangle mesh and returns the face ID.

int kge::ph::DynamicTriangleMesh::IntersectRay ( math::Ray pRay,
int &  OutClosestPointIndex 
)

Checks the ray intersection with triangle mesh and returns the face ID and Closest point index.

int kge::ph::DynamicTriangleMesh::IntersectRayClosestFace ( math::Ray pRay,
int &  OutClosestPointIndex,
math::Vector vp 
)

Checks the ray intersection with triangle mesh and returns the nearest face ID and Closest point index.

Member Data Documentation

int kge::ph::DynamicTriangleMesh::m_iAabbCount
protected

Definition at line 47 of file DynamicTriangleMesh.h.

int kge::ph::DynamicTriangleMesh::m_iTriCount
protected

Definition at line 47 of file DynamicTriangleMesh.h.

int kge::ph::DynamicTriangleMesh::m_iUTriCopunt
protected

Definition at line 47 of file DynamicTriangleMesh.h.

int kge::ph::DynamicTriangleMesh::m_iVTriCount
protected

Definition at line 47 of file DynamicTriangleMesh.h.

math::AABB* kge::ph::DynamicTriangleMesh::m_pAABB
protected

Definition at line 52 of file DynamicTriangleMesh.h.

math::Triangle* kge::ph::DynamicTriangleMesh::m_pTris
protected

Definition at line 45 of file DynamicTriangleMesh.h.


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