Ignore:
Timestamp:
04/02/07 11:50:12 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TerrainFrameListener.cpp

    r2290 r2305  
    1111#include "TestCullingTerrainApplication.h" 
    1212#include <string> 
     13 
    1314 
    1415//-- captions for overlays 
     
    521522                setCurrentFrameInfo(evt.timeSinceLastFrame); 
    522523 
    523                 // HACK for demo: save new frame rates for different methods on the  
    524                 // same walkthrough 
     524                // HACK for demo: save new frame rates for the same walkthrough 
    525525                if (mSavePrecomputedFps) 
    526526                { 
     
    758758bool TerrainFrameListener::processUnbufferedMouseInput(const FrameEvent& evt) 
    759759{ 
    760         /* Rotation factors, may not be used if the second mouse button is pressed. */ 
    761  
    762     /* If the second mouse button is pressed, then the mouse movement results in  
    763        sliding the camera, otherwise we rotate. */ 
     760        // Rotation factors, may not be used if the second mouse button is pressed. 
     761    // If the second mouse button is pressed, then the mouse movement results in  
     762    // sliding the camera, otherwise we rotate. 
    764763    if (mInputDevice->getMouseButton(1)) 
    765764    { 
     
    14991498                break; 
    15001499        case KC_7: 
    1501                 mTerrainContentGenerator->WriteObjects(objects_out_filename); 
     1500                { 
     1501                        // generate new objects 
     1502                        const int numObjects = 500; 
     1503                        mApplication->generateScene(numObjects, mCurrentObjectType); 
     1504                } 
    15021505                break; 
    15031506        case KC_8: 
     
    15501553 
    15511554        case KC_F8: 
    1552                 {        
    1553                         // generate new objects 
    1554                         const int objNum = 500; 
    1555                         mApplication->generateScene(objNum, mCurrentObjectType); 
    1556                 } 
    1557                 break; 
     1555 
     1556                mTerrainContentGenerator->WriteObjects(objects_out_filename); 
     1557                break; 
     1558 
    15581559        case KC_F9: 
    15591560                mUseAnimation = !mUseAnimation; 
Note: See TracChangeset for help on using the changeset viewer.