#include <K2dImageBuild.h>
Inheritance diagram for K2dImageBuild:
Public Member Functions | |
K2dImageBuild (K3dGameData *_pGameData) | |
Constructor. | |
~K2dImageBuild (void) | |
void | LoadImages () |
Load 2d images. | |
void | DeleteImages () |
Delete 2d Images. | |
Private Attributes | |
K3dGameData * | m_pGameData |
Global game data, data centered game system. | |
K3dTextureBuild * | m_pTextureBuild |
Pointer to texture builder. |
Definition at line 42 of file K2dImageBuild.h.
K2dImageBuild::K2dImageBuild | ( | K3dGameData * | _pGameData | ) |
Constructor.
_pGameData | Pointer to global game data |
Definition at line 38 of file K2dImageBuild.cpp.
References K3dSceneData::GetTextureBuild(), m_pGameData, m_pTextureBuild, and K3dSceneData::SetImageBuild().
K2dImageBuild::~K2dImageBuild | ( | void | ) |
void K2dImageBuild::LoadImages | ( | ) |
Load 2d images.
Definition at line 53 of file K2dImageBuild.cpp.
References K3dString::AddNumber(), K3dTextureBuild::FindTextureId(), K3dSafePointer< _T >::Get(), K3dGameData::Get2dImageObjSP(), K3dTexture::GetHeight(), K3dTexture::GetId(), K3dSceneData::GetLua(), K3dSafePointer< _T >::GetNum(), K3dString::GetString(), K3dGameData::GetTextureObjSP(), K3dTexture::GetWidth(), K_STR_BLEND, K_STR_IMAGE2D, K_STR_NAME, K_STR_NUM_2DIMAGES, K_STR_RECTANGLE_X, K_STR_RECTANGLE_Y, K_STR_TEXTURE_TABLE, K3dLua::LuaError(), K3dLua::LuaGetFieldBool(), K3dLua::LuaGetFieldNumber(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), m_pGameData, and m_pTextureBuild.
Referenced by K3dMngGraphics::InitMngGraphics().
void K2dImageBuild::DeleteImages | ( | ) |
Delete 2d Images.
Definition at line 121 of file K2dImageBuild.cpp.
References K3dSafePointer< _T >::Delete(), K3dSafePointer< _T >::Get(), K3dGameData::Get2dImageObjSP(), K3dSafePointer< _T >::GetNum(), K2dImage::GetTextureId(), and m_pGameData.
Referenced by K3dMngGraphics::DeleteMngGraphics(), and ~K2dImageBuild().
K3dGameData* K2dImageBuild::m_pGameData [private] |
Global game data, data centered game system.
Reimplemented in K3dScene, K3dMngGraphics, and K3dMngSystem.
Definition at line 44 of file K2dImageBuild.h.
Referenced by DeleteImages(), K2dImageBuild(), and LoadImages().
K3dTextureBuild* K2dImageBuild::m_pTextureBuild [private] |
Pointer to texture builder.
Definition at line 45 of file K2dImageBuild.h.
Referenced by K2dImageBuild(), and LoadImages().