Changeset 735
- Timestamp:
- 06/21/09 00:46:27 (9 months ago)
- Location:
- trunk/lugre
- Files:
-
- 3 modified
-
include/lugre_gfx3D.h (modified) (1 diff)
-
src/lugre_gfx3D.cpp (modified) (2 diffs)
-
src/lugre_gfx3D_L.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lugre/include/lugre_gfx3D.h
r548 r735 68 68 69 69 class cGfx3D : public cSmartPointable { public : 70 static unsigned int miCount; 71 70 72 // client only 71 73 SceneNode* mpSceneNode; -
trunk/lugre/src/lugre_gfx3D.cpp
r734 r735 538 538 } 539 539 540 unsigned int cGfx3D::miCount = 0; 541 540 542 cGfx3D::cGfx3D (SceneNode* pSceneNode) : 541 543 mpSceneNode (pSceneNode), … … 561 563 mpForceRotCam (0), 562 564 mbHasPath (false), 563 mbPrepareFrameStep (false) {} 565 mbPrepareFrameStep (false) 566 { 567 ++miCount; 568 } 564 569 565 570 cGfx3D::~cGfx3D () { PROFILE 571 --miCount; 566 572 Clear(); 567 573 DestroyPath(); -
trunk/lugre/src/lugre_gfx3D_L.cpp
r663 r735 36 36 lua_register(L,"CreateCamPosGfx3D", &cGfx3D_L::CreateCamPosGfx3D); 37 37 lua_register(L,"CreateCockpitGfx3D", &cGfx3D_L::CreateCockpitGfx3D); 38 lua_register(L,"GetGfx3DCount", &cGfx3D_L::GetGfx3DCount); 38 39 39 40 #define REGISTER_METHOD(methodname) mlMethod.push_back(make_luaL_reg(#methodname,&cGfx3D_L::methodname)); … … 160 161 161 162 163 /// returns the number of gfx3d objects that are currently allocated 164 static int GetGfx3DCount (lua_State *L) { PROFILE 165 lua_pushnumber(L,cGfx3D::miCount); 166 return 1; 167 } 168 162 169 static int CreateGfx3D (lua_State *L) { PROFILE 163 170 std::string sSceneMgrName = (lua_gettop(L) >= 1 && !lua_isnil(L,1)) ? luaL_checkstring(L,1) : "main";
