K3dDrawTriangle Class Reference

#include <K3dDrawTriangle.h>

Inheritance diagram for K3dDrawTriangle:

K3dDraw K3dMngGeometry K3dMngSystem K3dScene List of all members.

Public Member Functions

 K3dDrawTriangle (K3dGameData *_pGameData)
 ~K3dDrawTriangle ()
void AddTriangle (TRenderTriangle &_rtTriangle)
void DeleteVertexArray ()
void DrawTriangleArray ()
 Draw triangle.
void ReallocVertexArray (const int _iNewSize)
 Realloc vertex array if new size is greater than previous size.
void InitTriangleArray ()

Private Attributes

K3dGameDatam_pGameData
 Global game data, data centered game system.
TRenderVertexm_ptVertexArray
 Vertex array for rendering.
TRenderVertexm_ptNormalArray
 Normal array for rendering.
int m_iNumVertices
 Number of vertices in render array.
bool m_bIsWireframe
 Draw triangle in wireframe?

Detailed Description

Definition at line 58 of file K3dDrawTriangle.h.


Constructor & Destructor Documentation

K3dDrawTriangle::K3dDrawTriangle ( K3dGameData _pGameData  )  [inline]

Definition at line 67 of file K3dDrawTriangle.h.

References m_bIsWireframe, m_iNumVertices, m_pGameData, m_ptNormalArray, and m_ptVertexArray.

K3dDrawTriangle::~K3dDrawTriangle (  )  [inline]

Definition at line 75 of file K3dDrawTriangle.h.

References DeleteVertexArray().


Member Function Documentation

void K3dDrawTriangle::AddTriangle ( TRenderTriangle _rtTriangle  ) 

Definition at line 165 of file K3dDrawTriangle.cpp.

References TRenderTriangle::atNormal, TRenderTriangle::atVertex, m_iNumVertices, m_ptNormalArray, m_ptVertexArray, and ReallocVertexArray().

Referenced by K3dDraw::BuildTriangleArray().

void K3dDrawTriangle::DeleteVertexArray (  ) 

Definition at line 185 of file K3dDrawTriangle.cpp.

References m_iNumVertices, m_ptNormalArray, and m_ptVertexArray.

Referenced by K3dMngGeometry::DeleteMngGeometry(), ReallocVertexArray(), and ~K3dDrawTriangle().

void K3dDrawTriangle::DrawTriangleArray (  ) 

Draw triangle.

Definition at line 39 of file K3dDrawTriangle.cpp.

References m_iNumVertices, and m_ptVertexArray.

Referenced by K3dMngGeometry::DrawMngGeometry().

void K3dDrawTriangle::ReallocVertexArray ( const int  _iNewSize  ) 

Realloc vertex array if new size is greater than previous size.

Definition at line 141 of file K3dDrawTriangle.cpp.

References DeleteVertexArray(), m_iNumVertices, m_ptNormalArray, and m_ptVertexArray.

Referenced by AddTriangle().

void K3dDrawTriangle::InitTriangleArray (  ) 

Definition at line 124 of file K3dDrawTriangle.cpp.

References m_ptNormalArray, and m_ptVertexArray.

Referenced by K3dDraw::BuildTriangleArray().


Member Data Documentation

K3dGameData* K3dDrawTriangle::m_pGameData [private]

Global game data, data centered game system.

Reimplemented in K3dDraw, K3dScene, K3dMngGeometry, and K3dMngSystem.

Definition at line 60 of file K3dDrawTriangle.h.

Referenced by K3dDrawTriangle().

TRenderVertex* K3dDrawTriangle::m_ptVertexArray [private]

Vertex array for rendering.

Definition at line 61 of file K3dDrawTriangle.h.

Referenced by AddTriangle(), DeleteVertexArray(), DrawTriangleArray(), InitTriangleArray(), K3dDrawTriangle(), and ReallocVertexArray().

TRenderVertex* K3dDrawTriangle::m_ptNormalArray [private]

Normal array for rendering.

Definition at line 62 of file K3dDrawTriangle.h.

Referenced by AddTriangle(), DeleteVertexArray(), InitTriangleArray(), K3dDrawTriangle(), and ReallocVertexArray().

int K3dDrawTriangle::m_iNumVertices [private]

Number of vertices in render array.

Definition at line 63 of file K3dDrawTriangle.h.

Referenced by AddTriangle(), DeleteVertexArray(), DrawTriangleArray(), K3dDrawTriangle(), and ReallocVertexArray().

bool K3dDrawTriangle::m_bIsWireframe [private]

Draw triangle in wireframe?

Definition at line 64 of file K3dDrawTriangle.h.

Referenced by K3dDrawTriangle().


The documentation for this class was generated from the following files:
Generated on Thu Aug 16 23:53:31 2007 for K3dEngine by  doxygen 1.5.0