#include <K3dVertexBuild.h>
Inheritance diagram for K3dVertexBuild:
Public Member Functions | |
K3dVertexBuild (K3dGameData *_pGameData) | |
Constructor. | |
~K3dVertexBuild (void) | |
void | LoadVertices () |
Load vertices and add to global data. | |
void | DeleteVertices () |
Delete all vertices from global data. | |
K3dVertexObj * | CreateNewVertexObj () |
Create new vertex and add this to the gloabal data. | |
Private Attributes | |
K3dGameData * | m_pGameData |
Global game data, data centered game system. |
Definition at line 44 of file K3dVertexBuild.h.
K3dVertexBuild::K3dVertexBuild | ( | K3dGameData * | _pGameData | ) |
Constructor.
_pGameData | Pointer to global game data |
Definition at line 39 of file K3dVertexBuild.cpp.
References m_pGameData, and K3dSceneData::SetVertexBuild().
K3dVertexBuild::~K3dVertexBuild | ( | void | ) |
void K3dVertexBuild::LoadVertices | ( | ) |
Load vertices and add to global data.
Definition at line 68 of file K3dVertexBuild.cpp.
References K3dString::AddNumber(), CreateNewVertexObj(), K3dSceneData::GetLua(), K3dString::GetString(), K_STR_A, K_STR_B, K_STR_COORD_X, K_STR_COORD_Y, K_STR_G, K_STR_NAME, K_STR_NORMAL_X, K_STR_NORMAL_Y, K_STR_NORMAL_Z, K_STR_NUM_VERTICES, K_STR_POS_X, K_STR_POS_Y, K_STR_POS_Z, K_STR_R, K_STR_VERTEX, K3dLua::LuaError(), K3dLua::LuaGetFieldNumber(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), and m_pGameData.
Referenced by K3dMngGeometry::InitMngGeometry().
void K3dVertexBuild::DeleteVertices | ( | ) |
Delete all vertices from global data.
Definition at line 129 of file K3dVertexBuild.cpp.
References K3dSafePointer< _T >::Delete(), K3dSafePointer< _T >::Get(), K3dSafePointer< _T >::GetNum(), K3dGameData::GetVertexObjSP(), and m_pGameData.
Referenced by K3dMngGeometry::DeleteMngGeometry(), and ~K3dVertexBuild().
K3dVertexObj * K3dVertexBuild::CreateNewVertexObj | ( | ) |
Create new vertex and add this to the gloabal data.
K3dVertexObj* | New vertex pointer |
Definition at line 54 of file K3dVertexBuild.cpp.
References K3dColor4Build::CreateNewColor4(), K3dVector2Build::CreateNewVector2(), K3dVector3Build::CreateNewVector3(), K3dSceneData::GetColor4Build(), K3dVertexObj::GetId(), K3dSafePointer< _T >::GetNum(), K3dSceneData::GetVector2Build(), K3dSceneData::GetVector3Build(), K3dGameData::GetVertexObjSP(), m_pGameData, K3dSafePointer< _T >::New(), K3dVertex::SetColor(), K3dVertex::SetNormal(), K3dVertex::SetPosition(), and K3dVertex::SetTexCoord().
Referenced by K3dVM::AddVertex(), K3dBoxBuild::CreateSceneBox(), and LoadVertices().
K3dGameData* K3dVertexBuild::m_pGameData [private] |
Global game data, data centered game system.
Reimplemented from K3dVertexWork.
Reimplemented in K3dObjectBuild, K3dScene, K3dMngGeometry, and K3dMngSystem.
Definition at line 47 of file K3dVertexBuild.h.
Referenced by CreateNewVertexObj(), DeleteVertices(), K3dVertexBuild(), and LoadVertices().