#include <K3dDrawTriangle.h>
Inheritance diagram for K3dDrawTriangle:
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 | |
K3dGameData * | m_pGameData |
Global game data, data centered game system. | |
TRenderVertex * | m_ptVertexArray |
Vertex array for rendering. | |
TRenderVertex * | m_ptNormalArray |
Normal array for rendering. | |
int | m_iNumVertices |
Number of vertices in render array. | |
bool | m_bIsWireframe |
Draw triangle in wireframe? |
Definition at line 58 of file K3dDrawTriangle.h.
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] |
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().
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().