Changeset 160 for trunk/VUT/work/TestCulling
- Timestamp:
- 07/08/05 01:53:01 (19 years ago)
- Location:
- trunk/VUT/work/TestCulling
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/TestCulling/TestCullingApplication.cpp
r155 r160 31 31 32 32 // Position it at 500 in Z direction 33 mCamera->setPosition(Vector3(128, 25,128));33 mCamera->setPosition(Vector3(128, 25, 128)); 34 34 35 35 // Look back along -Z 36 mCamera->lookAt(Vector3(0, 0,-300));37 mCamera->setNearClipDistance( 1);38 mCamera->setFarClipDistance( 1000);36 mCamera->lookAt(Vector3(0, 0, -300)); 37 mCamera->setNearClipDistance(1); 38 mCamera->setFarClipDistance(1000); 39 39 }*/ 40 40 //----------------------------------------------------------------------- … … 67 67 void TestCullingApplication::setupGui() 68 68 { 69 mGUIRenderer = new CEGUI::OgreCEGUIRenderer(mWindow, Ogre::RENDER_QUEUE_OVERLAY, false, 3000, ST_EXTERIOR_CLOSE); 69 mGUIRenderer = new CEGUI::OgreCEGUIRenderer(mWindow, 70 Ogre::RENDER_QUEUE_OVERLAY, false, 3000, ST_EXTERIOR_CLOSE); 70 71 mGUISystem = new CEGUI::System(mGUIRenderer); 71 72 … … 93 94 94 95 95 /*********************************************** /96 /* TerrainFrameListener implementation */97 /*********************************************** /96 /*****************************************************/ 97 /* TerrainFrameListener implementation */ 98 /*****************************************************/ 98 99 //----------------------------------------------------------------------- 99 100 TerrainFrameListener::TerrainFrameListener(RenderWindow* win, Camera* cam, 100 101 SceneManager *sceneManager, 101 102 CEGUI::Renderer *renderer, 102 SceneContentGenerator *sceneContentGenerator) 103 :ExampleFrameListener(win, cam, false, true),103 SceneContentGenerator *sceneContentGenerator): 104 ExampleFrameListener(win, cam, false, true), 104 105 mSceneMgr(sceneManager), 105 106 mGUIRenderer(renderer), … … 136 137 mHierarchyNodesInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/HierarchyNodesInfo"); 137 138 mRenderedNodesInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/RenderedNodesInfo"); 138 mObjects Info = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/ObjectsInfo");139 mObjectsCountInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/ObjectsInfo"); 139 140 mTestGeometryForVisibleLeavesInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/TestGeometryForVisibleLeavesInfo"); 140 141 mQueriesIssuedInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/QueriesIssuedInfo"); … … 148 149 mHierarchyNodesInfo->setCaption(": 0"); 149 150 mRenderedNodesInfo->setCaption(": 0"); 150 mObjects Info->setCaption(": 0");151 mObjectsCountInfo->setCaption(": 0"); 151 152 mTestGeometryForVisibleLeavesInfo->setCaption(": true"); 152 153 mQueriesIssuedInfo->setCaption(": 0"); … … 330 331 331 332 sprintf(str,": %d", mSceneContentGenerator->GetObjectCount()); 332 mObjects Info->setCaption(str);333 mObjectsCountInfo->setCaption(str); 333 334 } 334 335 //----------------------------------------------------------------------- -
trunk/VUT/work/TestCulling/TestCullingApplication.h
r155 r160 1 /** 2 \file 3 TestCullingApplication.h 4 */ 1 #ifndef _TerrainFrameListener_H__ 2 #define _TerrainFrameListener_H__ 3 5 4 #include "CEGUIForwardRefs.h" 6 5 #include "ExampleApplication.h" … … 29 28 public: 30 29 31 TerrainFrameListener(RenderWindow* win, Camera* cam, SceneManager *sceneManager, 32 CEGUI::Renderer *renderer, SceneContentGenerator *sceneContentGenerator); 30 TerrainFrameListener(RenderWindow* win, 31 Camera* cam, 32 SceneManager *sceneManager, 33 CEGUI::Renderer *renderer, 34 SceneContentGenerator *sceneContentGenerator); 33 35 34 36 35 ~TerrainFrameListener( 37 ~TerrainFrameListener(); 36 38 37 39 bool frameStarted(const FrameEvent& evt); … … 86 88 OverlayElement *mHierarchyNodesInfo; 87 89 OverlayElement *mRenderedNodesInfo; 88 OverlayElement *mObjects Info;90 OverlayElement *mObjectsCountInfo; 89 91 OverlayElement *mTestGeometryForVisibleLeavesInfo; 90 92 OverlayElement *mQueriesIssuedInfo; … … 130 132 }; 131 133 134 #endif // _TerrainFrameListener_H__
Note: See TracChangeset
for help on using the changeset viewer.