Ignore:
Timestamp:
11/28/06 10:57:59 (18 years ago)
Author:
gumbau
Message:

Demos updated to the last version of Ogre

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Geom/Demo_LodTrees/main.cpp

    r1812 r1813  
    3636OverlayElement* mHelp; 
    3737 
    38 char HelpString[]="(F1) Help\n" 
     38char HelpString[]="(F1) Quit Help\n" 
    3939                        "This demo shows an example of the LodTree model in action. The scene is composed of\n" 
    4040                        "several tree groups which are associated to a LodTree object that manage the level\n" 
     
    4949                        "maintaining pressed F2."; 
    5050 
    51 char NoHelpString[]="(F1) Help\n"; 
     51char NoHelpString[]="\n\n\n\n\n\n\n\n\n\n\n\n\n(F1) Help\n"; 
     52 
    5253 
    5354 
     
    8485                } 
    8586 
    86                 Vector3 dist;  
    87                 int inc2=0,d; 
    88                 unsigned int nlod,diflods; 
    89  
    9087                // Move upto 80 units/second 
    9188                Real MoveFactor = 120.0 * evt.timeSinceLastFrame; 
     
    116113                for (int i=0; i<num_tree_types; i++) 
    117114                {        
    118                         dist = centers[i] - mCamera->getPosition();  
     115                        Vector3 dist = centers[i] - mCamera->getPosition();  
    119116                        int distance = dist.length(); 
    120117 
     
    210207                if (itr != rayRes.end() && itr->worldFragment) 
    211208                        mCamera->setPosition(itr->worldFragment->singleIntersection+Ogre::Vector3(0.0f,15.0f,0.0f)); 
     209 
     210 
     211                char cadena[256]; 
     212        const RenderTarget::FrameStats& stats = mWindow->getStatistics(); 
     213                sprintf(cadena,"Current FPS: %f\n",stats.lastFPS); 
     214                mInfo2->setCaption(cadena); 
    212215 
    213216                return true; 
     
    338341            pOver->show(); 
    339342 
    340                 mInfo->setCaption("Maintain F2 to disable LOD"); 
     343                mInfo->setCaption("\nMaintain F2 to disable LOD"); 
    341344 
    342345                // create the shadow texture 
Note: See TracChangeset for help on using the changeset viewer.