text: #include <Terrain/OgreTerrain.h>
  #include <Terrain/OgreTerrainGroup.h>
   
  #include "BaseApplication.h"
   
  class TutorialApplication : public BaseApplication
  {
  public:
    TutorialApplication();
    virtual ~TutorialApplication();
   
  protected:
    virtual void createScene();
    virtual void createFrameListener();
    virtual void destroyScene();
    virtual bool frameRenderingQueued(const Ogre::FrameEvent& fe);
    virtual void createCamera();
    virtual void createViewports();
    virtual void handleAnimations(const Ogre::FrameEvent& evt);
   
  private:
    void defineTerrain(long x, long y);
    void initBlendMaps(Ogre::Terrain* terrain);
    void configureTerrainDefaults(Ogre::Light* light);
    bool processUnbufferedInput(const Ogre::FrameEvent& fe);
   
    bool mTerrainsImported;
    Ogre::TerrainGroup* mTerrainGroup;
    Ogre::TerrainGlobalOptions* mTerrainGlobals;
   
    OgreBites::Label* mInfoLabel;
   
    Ogre::AnimationState*		mAnimationState;
    Ogre::Entity*				mEntity;
  };
   
  
  