Changeset 121 for trunk/VUT/work
- Timestamp:
- 06/08/05 17:44:48 (20 years ago)
- Location:
- trunk/VUT/work/TestCullingTerrain
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/TestCullingTerrain/TerrainMouseQueryListener.cpp
r120 r121 37 37 TerrainContentGenerator *sceneGenerator, 38 38 Camera *vizCamera, 39 SceneNode *camNode): 39 SceneNode *camNode, 40 Light *sunLight): 40 41 mCamera(cam), 41 42 mWindow(win), … … 77 78 mShowHelp(false), 78 79 mDisplayCameraDetails(false), 79 mVisualizeCulledNodes(false) 80 mVisualizeCulledNodes(false), 81 mSunLight(sunLight) 80 82 { 81 83 mInputDevice = PlatformManager::getSingleton().createInputReader(); … … 403 405 writeFrames(); 404 406 405 //-- write out stats 407 //-- write out stats for recorded walkthrough 406 408 std::stringstream d; 407 409 d << "Algorithm: " << mCurrentAlgorithmCaptions[mCurrentAlgorithm] << "\n" … … 637 639 mUseShadows = !mUseShadows; 638 640 639 //mSunLight->setCastShadows(mUseShadows);641 mSunLight->setCastShadows(mUseShadows); 640 642 641 643 if (mUseShadows) … … 783 785 KEY_PRESSED(KC_F2, 0.3, toggleShowStats()); 784 786 KEY_PRESSED(KC_F3, 0.3, nextAppState()); 785 786 KEY_PRESSED(KC_F10, 0.3, toggleRecord()); 787 KEY_PRESSED(KC_F4, 0.3, toggleRecord()); 788 787 789 KEY_PRESSED(KC_F11, 0.3, takeScreenShot()); 788 790 KEY_PRESSED(KC_F12, 0.3, mTerrainContentGenerator->WriteObjects(objects_out_filename)); -
trunk/VUT/work/TestCullingTerrain/TerrainMouseQueryListener.h
r120 r121 25 25 TerrainMouseQueryListener(RenderWindow* win, Camera* cam, SceneManager *sceneManager, 26 26 CEGUI::Renderer *renderer, TerrainContentGenerator *contentGenerator, Camera *vizCamera, 27 SceneNode *camNode );27 SceneNode *camNode, Light *sunLight); 28 28 29 29 ~TerrainMouseQueryListener(); … … 84 84 85 85 86 87 86 // Constructor takes a RenderWindow because it uses that to determine input context 88 87 //ExampleFrameListener(RenderWindow* win, Camera* cam, bool useBufferedInputKeys = false, bool useBufferedInputMouse = false) … … 200 199 Overlay* mHelpOverlay; 201 200 Overlay* mCullStatsOverlay; 201 202 Light *mSunLight; 202 203 }; 203 204 -
trunk/VUT/work/TestCullingTerrain/TestCullingTerrainApplication.cpp
r120 r121 120 120 121 121 // Floor plane 122 /*Plane plane; 122 /* 123 Plane plane; 123 124 plane.normal = Vector3::UNIT_Y; 124 125 plane.d = -60; … … 129 130 pPlaneEnt->setMaterialName("Examples/Rockwall"); 130 131 pPlaneEnt->setCastShadows(true); 131 mSceneMgr->getRootSceneNode()->createChildSceneNode()->attachObject(pPlaneEnt);*/ 132 mSceneMgr->getRootSceneNode()->createChildSceneNode()->attachObject(pPlaneEnt); 133 */ 132 134 133 135 if (mRoot->getRenderSystem()->getCapabilities()->hasCapability(RSC_HWRENDER_TO_TEXTURE)) … … 191 193 { 192 194 mTerrainFrameListener = new TerrainMouseQueryListener(mWindow, mCamera, mSceneMgr, 193 mGUIRenderer, mTerrainContentGenerator, mVizCamera, mCamNode );195 mGUIRenderer, mTerrainContentGenerator, mVizCamera, mCamNode, mSunLight); 194 196 195 197 mRoot->addFrameListener(mTerrainFrameListener);
Note: See TracChangeset
for help on using the changeset viewer.