K2dImageBuild Class Reference

#include <K2dImageBuild.h>

Inheritance diagram for K2dImageBuild:

K3dMngGraphics K3dMngSystem K3dScene List of all members.

Public Member Functions

 K2dImageBuild (K3dGameData *_pGameData)
 Constructor.
 ~K2dImageBuild (void)
void LoadImages ()
 Load 2d images.
void DeleteImages ()
 Delete 2d Images.

Private Attributes

K3dGameDatam_pGameData
 Global game data, data centered game system.
K3dTextureBuildm_pTextureBuild
 Pointer to texture builder.

Detailed Description

Definition at line 42 of file K2dImageBuild.h.


Constructor & Destructor Documentation

K2dImageBuild::K2dImageBuild ( K3dGameData _pGameData  ) 

Constructor.

Parameters:
_pGameData Pointer to global game data
See also:
K3dGameData

Definition at line 38 of file K2dImageBuild.cpp.

References K3dSceneData::GetTextureBuild(), m_pGameData, m_pTextureBuild, and K3dSceneData::SetImageBuild().

K2dImageBuild::~K2dImageBuild ( void   ) 

Definition at line 47 of file K2dImageBuild.cpp.

References DeleteImages().


Member Function Documentation

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().


Member Data Documentation

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().


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