Commits

Jacob Moen committed f4ec7aa

Updating wizards for Ogre 1.7.3

Comments (0)

Files changed (35)

VC10/Files/templates/1033/docs/readme.txt

-   ___                   _              __    __ _                  _ 
-  /___\__ _ _ __ ___    /_\  _ __  _ __/ / /\ \ (_)______ _ _ __ __| |
- //  // _` | '__/ _ \  //_\\| '_ \| '_ \ \/  \/ / |_  / _` | '__/ _` |
-/ \_// (_| | | |  __/ /  _  \ |_) | |_) \  /\  /| |/ / (_| | | | (_| |
-\___/ \__, |_|  \___| \_/ \_/ .__/| .__/ \/  \/ |_/___\__,_|_|  \__,_|
-      |___/                 |_|   |_|                                 
-	  Ogre 1.7.x Application Wizard for VC10 (August 2010)
-	  http://code.google.com/p/ogreappwizards/
-========================================================================
-    About the "[!output PROJECT_NAME]" Project
-========================================================================
-
-The OGRE Application Wizard has created this OGRE "[!output PROJECT_NAME]" project for you.
-It serves as a starting point, whether you want to do some quick OGRE-testing,
-or just want to create an OGRE compliant project real fast.
-
-IMPORTANT!
-This wizard relies on the OGRE_HOME environment variable being set to the root directory of your Ogre SDK, like this:
-D:\OgreSDK\OgreSDK_vc10_v1-7-1
-
-You can do that in Windows Vista and later by opening a command prompt and do this:
-setx OGRE_HOME D:\OgreSDK\OgreSDK_vc10_v1-7-1
-
-Alternatively, navigate to the Ogre SDK directory and enter this:
-setx OGRE_HOME %CD%
-
-You can check if OGRE_HOME is set correctly by typing this in a command shell (cmd.exe):
-set OGRE_HOME
-
-For users of Windows XP, see this:
-http://vlaurie.com/computers2/Articles/environment.htm
-Open Control Panel-Performance and Maintenance-System - click Advanced tab and the Environment Variables button; then create a new environment variable OGRE_HOME.
-
-Enjoy! ;-))
-
-/////////////////////////////////////////////////////////////////////////////
-About the wizard:
-
-Remember that you can customize and tweak the wizard to your liking.
-Look in the "templates" directory where you placed the OGRE Application Wizard.
-(Might be a good idea to make a backup copy, just in case...)
-
-The Ogre AppWizard is hosted at http://code.google.com/p/ogreappwizards/
-Feature requests, bug reports, etc - use the project issue tracker.
-
-Please visit the Ogre AppWizard Forum for support: http://www.jacmoe.dk/forum/index.php?board=2.0
-
-Alternatively, leave a note in the Ogre Forum: http://www.ogre3d.org/forums/index.php
-
-/////////////////////////////////////////////////////////////////////////////
+   ___                   _              __    __ _                  _ 
+  /___\__ _ _ __ ___    /_\  _ __  _ __/ / /\ \ (_)______ _ _ __ __| |
+ //  // _` | '__/ _ \  //_\\| '_ \| '_ \ \/  \/ / |_  / _` | '__/ _` |
+/ \_// (_| | | |  __/ /  _  \ |_) | |_) \  /\  /| |/ / (_| | | | (_| |
+\___/ \__, |_|  \___| \_/ \_/ .__/| .__/ \/  \/ |_/___\__,_|_|  \__,_|
+      |___/                 |_|   |_|                                 
+	  Ogre 1.7.x Application Wizard for VC10 (July 2011)
+	  http://code.google.com/p/ogreappwizards/
+========================================================================
+    About the "[!output PROJECT_NAME]" Project
+========================================================================
+
+The OGRE Application Wizard has created this OGRE "[!output PROJECT_NAME]" project for you.
+It serves as a starting point, whether you want to do some quick OGRE-testing,
+or just want to create an OGRE compliant project real fast.
+
+IMPORTANT!
+This wizard relies on the OGRE_HOME environment variable being set to the root directory of your Ogre SDK, like this:
+D:\OgreSDK\OgreSDK_vc10_v1-7-3
+
+You can do that in Windows Vista and later by opening a command prompt and do this:
+setx OGRE_HOME D:\OgreSDK\OgreSDK_vc10_v1-7-3
+
+Alternatively, navigate to the Ogre SDK directory and enter this:
+setx OGRE_HOME %CD%
+
+You can check if OGRE_HOME is set correctly by typing this in a command shell (cmd.exe):
+set OGRE_HOME
+
+For users of Windows XP, see this:
+http://vlaurie.com/computers2/Articles/environment.htm
+Open Control Panel-Performance and Maintenance-System - click Advanced tab and the Environment Variables button; then create a new environment variable OGRE_HOME.
+
+Enjoy! ;-))
+
+/////////////////////////////////////////////////////////////////////////////
+About the wizard:
+
+Remember that you can customize and tweak the wizard to your liking.
+Look in the "templates" directory where you placed the OGRE Application Wizard.
+(Might be a good idea to make a backup copy, just in case...)
+
+The Ogre AppWizard is hosted at http://code.google.com/p/ogreappwizards/
+Feature requests, bug reports, etc - use the project issue tracker.
+
+Alternatively, leave a note in the Ogre Forum: http://www.ogre3d.org/forums/index.php
+
+/////////////////////////////////////////////////////////////////////////////

VC10/Files/templates/1033/include/BaseApplication.h

-/*
------------------------------------------------------------------------------
-Filename:    BaseApplication.h
------------------------------------------------------------------------------
-
-
-This source file is generated by the
-   ___                   _              __    __ _                  _ 
-  /___\__ _ _ __ ___    /_\  _ __  _ __/ / /\ \ (_)______ _ _ __ __| |
- //  // _` | '__/ _ \  //_\\| '_ \| '_ \ \/  \/ / |_  / _` | '__/ _` |
-/ \_// (_| | | |  __/ /  _  \ |_) | |_) \  /\  /| |/ / (_| | | | (_| |
-\___/ \__, |_|  \___| \_/ \_/ .__/| .__/ \/  \/ |_/___\__,_|_|  \__,_|
-      |___/                 |_|   |_|                                 
-      Ogre 1.7.x Application Wizard for VC10 (August 2010)
-      http://code.google.com/p/ogreappwizards/
------------------------------------------------------------------------------
-*/
-#ifndef __BaseApplication_h_
-#define __BaseApplication_h_
-
-#include <OgreCamera.h>
-#include <OgreEntity.h>
-#include <OgreLogManager.h>
-#include <OgreRoot.h>
-#include <OgreViewport.h>
-#include <OgreSceneManager.h>
-#include <OgreRenderWindow.h>
-[!if !NO_CONFIG]
-#include <OgreConfigFile.h>
-[!endif]
-
-#include <OISEvents.h>
-#include <OISInputManager.h>
-#include <OISKeyboard.h>
-#include <OISMouse.h>
-
-#include <SdkTrays.h>
-#include <SdkCameraMan.h>
-
-class BaseApplication : public Ogre::FrameListener, public Ogre::WindowEventListener, public OIS::KeyListener, public OIS::MouseListener, OgreBites::SdkTrayListener
-{
-public:
-    BaseApplication(void);
-    virtual ~BaseApplication(void);
-
-    virtual void go(void);
-
-protected:
-    virtual bool setup();
-    virtual bool configure(void);
-    virtual void chooseSceneManager(void);
-    virtual void createCamera(void);
-    virtual void createFrameListener(void);
-    virtual void createScene(void) = 0; // Override me!
-    virtual void destroyScene(void);
-    virtual void createViewports(void);
-    virtual void setupResources(void);
-    virtual void createResourceListener(void);
-    virtual void loadResources(void);
-
-    // Ogre::FrameListener
-    virtual bool frameRenderingQueued(const Ogre::FrameEvent& evt);
-
-    // OIS::KeyListener
-    virtual bool keyPressed( const OIS::KeyEvent &arg );
-    virtual bool keyReleased( const OIS::KeyEvent &arg );
-    // OIS::MouseListener
-    virtual bool mouseMoved( const OIS::MouseEvent &arg );
-    virtual bool mousePressed( const OIS::MouseEvent &arg, OIS::MouseButtonID id );
-    virtual bool mouseReleased( const OIS::MouseEvent &arg, OIS::MouseButtonID id );
-
-    // Ogre::WindowEventListener
-    //Adjust mouse clipping area
-    virtual void windowResized(Ogre::RenderWindow* rw);
-    //Unattach OIS before window shutdown (very important under Linux)
-    virtual void windowClosed(Ogre::RenderWindow* rw);
-
-    Ogre::Root *mRoot;
-    Ogre::Camera* mCamera;
-    Ogre::SceneManager* mSceneMgr;
-    Ogre::RenderWindow* mWindow;
-[!if !NO_CONFIG]
-    Ogre::String mResourcesCfg;
-    Ogre::String mPluginsCfg;
-[!endif]
-
-    // OgreBites
-    OgreBites::SdkTrayManager* mTrayMgr;
-    OgreBites::SdkCameraMan* mCameraMan;     // basic camera controller
-    OgreBites::ParamsPanel* mDetailsPanel;   // sample details panel
-    bool mCursorWasVisible;                  // was cursor visible before dialog appeared
-    bool mShutDown;
-
-    //OIS Input devices
-    OIS::InputManager* mInputManager;
-    OIS::Mouse*    mMouse;
-    OIS::Keyboard* mKeyboard;
-};
-
-#endif // #ifndef __BaseApplication_h_
+/*
+-----------------------------------------------------------------------------
+Filename:    BaseApplication.h
+-----------------------------------------------------------------------------
+
+
+This source file is generated by the
+   ___                   _              __    __ _                  _ 
+  /___\__ _ _ __ ___    /_\  _ __  _ __/ / /\ \ (_)______ _ _ __ __| |
+ //  // _` | '__/ _ \  //_\\| '_ \| '_ \ \/  \/ / |_  / _` | '__/ _` |
+/ \_// (_| | | |  __/ /  _  \ |_) | |_) \  /\  /| |/ / (_| | | | (_| |
+\___/ \__, |_|  \___| \_/ \_/ .__/| .__/ \/  \/ |_/___\__,_|_|  \__,_|
+      |___/                 |_|   |_|                                 
+      Ogre 1.7.x Application Wizard for VC10 (July 2011)
+      http://code.google.com/p/ogreappwizards/
+-----------------------------------------------------------------------------
+*/
+#ifndef __BaseApplication_h_
+#define __BaseApplication_h_
+
+#include <OgreCamera.h>
+#include <OgreEntity.h>
+#include <OgreLogManager.h>
+#include <OgreRoot.h>
+#include <OgreViewport.h>
+#include <OgreSceneManager.h>
+#include <OgreRenderWindow.h>
+[!if !NO_CONFIG]
+#include <OgreConfigFile.h>
+[!endif]
+
+#include <OISEvents.h>
+#include <OISInputManager.h>
+#include <OISKeyboard.h>
+#include <OISMouse.h>
+
+#include <SdkTrays.h>
+#include <SdkCameraMan.h>
+
+class BaseApplication : public Ogre::FrameListener, public Ogre::WindowEventListener, public OIS::KeyListener, public OIS::MouseListener, OgreBites::SdkTrayListener
+{
+public:
+    BaseApplication(void);
+    virtual ~BaseApplication(void);
+
+    virtual void go(void);
+
+protected:
+    virtual bool setup();
+    virtual bool configure(void);
+    virtual void chooseSceneManager(void);
+    virtual void createCamera(void);
+    virtual void createFrameListener(void);
+    virtual void createScene(void) = 0; // Override me!
+    virtual void destroyScene(void);
+    virtual void createViewports(void);
+    virtual void setupResources(void);
+    virtual void createResourceListener(void);
+    virtual void loadResources(void);
+
+    // Ogre::FrameListener
+    virtual bool frameRenderingQueued(const Ogre::FrameEvent& evt);
+
+    // OIS::KeyListener
+    virtual bool keyPressed( const OIS::KeyEvent &arg );
+    virtual bool keyReleased( const OIS::KeyEvent &arg );
+    // OIS::MouseListener
+    virtual bool mouseMoved( const OIS::MouseEvent &arg );
+    virtual bool mousePressed( const OIS::MouseEvent &arg, OIS::MouseButtonID id );
+    virtual bool mouseReleased( const OIS::MouseEvent &arg, OIS::MouseButtonID id );
+
+    // Ogre::WindowEventListener
+    //Adjust mouse clipping area
+    virtual void windowResized(Ogre::RenderWindow* rw);
+    //Unattach OIS before window shutdown (very important under Linux)
+    virtual void windowClosed(Ogre::RenderWindow* rw);
+
+    Ogre::Root *mRoot;
+    Ogre::Camera* mCamera;
+    Ogre::SceneManager* mSceneMgr;
+    Ogre::RenderWindow* mWindow;
+[!if !NO_CONFIG]
+    Ogre::String mResourcesCfg;
+    Ogre::String mPluginsCfg;
+[!endif]
+
+    // OgreBites
+    OgreBites::SdkTrayManager* mTrayMgr;
+    OgreBites::SdkCameraMan* mCameraMan;     // basic camera controller
+    OgreBites::ParamsPanel* mDetailsPanel;   // sample details panel
+    bool mCursorWasVisible;                  // was cursor visible before dialog appeared
+    bool mShutDown;
+
+    //OIS Input devices
+    OIS::InputManager* mInputManager;
+    OIS::Mouse*    mMouse;
+    OIS::Keyboard* mKeyboard;
+};
+
+#endif // #ifndef __BaseApplication_h_

VC10/Files/templates/1033/include/root.h

-/*
------------------------------------------------------------------------------
-Filename:    [!output SAFE_PROJECT_IDENTIFIER_NAME].h
------------------------------------------------------------------------------
-
-
-This source file is generated by the
-   ___                   _              __    __ _                  _ 
-  /___\__ _ _ __ ___    /_\  _ __  _ __/ / /\ \ (_)______ _ _ __ __| |
- //  // _` | '__/ _ \  //_\\| '_ \| '_ \ \/  \/ / |_  / _` | '__/ _` |
-/ \_// (_| | | |  __/ /  _  \ |_) | |_) \  /\  /| |/ / (_| | | | (_| |
-\___/ \__, |_|  \___| \_/ \_/ .__/| .__/ \/  \/ |_/___\__,_|_|  \__,_|
-      |___/                 |_|   |_|                                 
-      Ogre 1.7.x Application Wizard for VC10 (August 2010)
-      http://code.google.com/p/ogreappwizards/
------------------------------------------------------------------------------
-*/
-#ifndef __[!output SAFE_PROJECT_IDENTIFIER_NAME]_h_
-#define __[!output SAFE_PROJECT_IDENTIFIER_NAME]_h_
-
-#include "BaseApplication.h"
-#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
-#include "../res/resource.h"
-#endif
-
-
-class [!output SAFE_PROJECT_IDENTIFIER_NAME] : public BaseApplication
-{
-public:
-    [!output SAFE_PROJECT_IDENTIFIER_NAME](void);
-    virtual ~[!output SAFE_PROJECT_IDENTIFIER_NAME](void);
-
-protected:
-    virtual void createScene(void);
-};
-
-#endif // #ifndef __[!output SAFE_PROJECT_IDENTIFIER_NAME]_h_
+/*
+-----------------------------------------------------------------------------
+Filename:    [!output SAFE_PROJECT_IDENTIFIER_NAME].h
+-----------------------------------------------------------------------------
+
+
+This source file is generated by the
+   ___                   _              __    __ _                  _ 
+  /___\__ _ _ __ ___    /_\  _ __  _ __/ / /\ \ (_)______ _ _ __ __| |
+ //  // _` | '__/ _ \  //_\\| '_ \| '_ \ \/  \/ / |_  / _` | '__/ _` |
+/ \_// (_| | | |  __/ /  _  \ |_) | |_) \  /\  /| |/ / (_| | | | (_| |
+\___/ \__, |_|  \___| \_/ \_/ .__/| .__/ \/  \/ |_/___\__,_|_|  \__,_|
+      |___/                 |_|   |_|                                 
+      Ogre 1.7.x Application Wizard for VC10 (July 2011)
+      http://code.google.com/p/ogreappwizards/
+-----------------------------------------------------------------------------
+*/
+#ifndef __[!output SAFE_PROJECT_IDENTIFIER_NAME]_h_
+#define __[!output SAFE_PROJECT_IDENTIFIER_NAME]_h_
+
+#include "BaseApplication.h"
+#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
+#include "../res/resource.h"
+#endif
+
+
+class [!output SAFE_PROJECT_IDENTIFIER_NAME] : public BaseApplication
+{
+public:
+    [!output SAFE_PROJECT_IDENTIFIER_NAME](void);
+    virtual ~[!output SAFE_PROJECT_IDENTIFIER_NAME](void);
+
+protected:
+    virtual void createScene(void);
+};
+
+#endif // #ifndef __[!output SAFE_PROJECT_IDENTIFIER_NAME]_h_

VC10/Files/templates/1033/include/root_mini.h

-/*
------------------------------------------------------------------------------
-Filename:    [!output SAFE_PROJECT_IDENTIFIER_NAME].h
------------------------------------------------------------------------------
-
-
-This source file is generated by the
-   ___                   _              __    __ _                  _ 
-  /___\__ _ _ __ ___    /_\  _ __  _ __/ / /\ \ (_)______ _ _ __ __| |
- //  // _` | '__/ _ \  //_\\| '_ \| '_ \ \/  \/ / |_  / _` | '__/ _` |
-/ \_// (_| | | |  __/ /  _  \ |_) | |_) \  /\  /| |/ / (_| | | | (_| |
-\___/ \__, |_|  \___| \_/ \_/ .__/| .__/ \/  \/ |_/___\__,_|_|  \__,_|
-      |___/                 |_|   |_|                                 
-      Ogre 1.7.x Application Wizard for VC10 (August 2010)
-      http://code.google.com/p/ogreappwizards/
------------------------------------------------------------------------------
-*/
-#ifndef __[!output SAFE_PROJECT_IDENTIFIER_NAME]_h_
-#define __[!output SAFE_PROJECT_IDENTIFIER_NAME]_h_
-
-#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
-#include "../res/resource.h"
-#endif
-
-#include <OgreCamera.h>
-#include <OgreEntity.h>
-#include <OgreLogManager.h>
-#include <OgreRoot.h>
-#include <OgreViewport.h>
-#include <OgreSceneManager.h>
-#include <OgreRenderWindow.h>
-[!if !NO_CONFIG]
-#include <OgreConfigFile.h>
-[!endif]
-
-#include <OISEvents.h>
-#include <OISInputManager.h>
-#include <OISKeyboard.h>
-#include <OISMouse.h>
-
-#include <SdkTrays.h>
-#include <SdkCameraMan.h>
-
-class [!output SAFE_PROJECT_IDENTIFIER_NAME] : public Ogre::FrameListener, public Ogre::WindowEventListener, public OIS::KeyListener, public OIS::MouseListener, OgreBites::SdkTrayListener
-{
-public:
-    [!output SAFE_PROJECT_IDENTIFIER_NAME](void);
-    virtual ~[!output SAFE_PROJECT_IDENTIFIER_NAME](void);
-    bool go(void);
-protected:
-    Ogre::Root *mRoot;
-    Ogre::Camera* mCamera;
-    Ogre::SceneManager* mSceneMgr;
-    Ogre::RenderWindow* mWindow;
-[!if !NO_CONFIG]
-    Ogre::String mResourcesCfg;
-    Ogre::String mPluginsCfg;
-[!endif]
-
-    // OgreBites
-    OgreBites::SdkTrayManager* mTrayMgr;
-    OgreBites::SdkCameraMan* mCameraMan;     // basic camera controller
-    OgreBites::ParamsPanel* mDetailsPanel;   // sample details panel
-    bool mCursorWasVisible;                  // was cursor visible before dialog appeared
-    bool mShutDown;
-
-    // OIS Input devices
-    OIS::InputManager* mInputManager;
-    OIS::Mouse*    mMouse;
-    OIS::Keyboard* mKeyboard;
-
-    // Ogre::FrameListener
-    virtual bool frameRenderingQueued(const Ogre::FrameEvent& evt);
-
-    // OIS::KeyListener
-    virtual bool keyPressed( const OIS::KeyEvent &arg );
-    virtual bool keyReleased( const OIS::KeyEvent &arg );
-    // OIS::MouseListener
-    virtual bool mouseMoved( const OIS::MouseEvent &arg );
-    virtual bool mousePressed( const OIS::MouseEvent &arg, OIS::MouseButtonID id );
-    virtual bool mouseReleased( const OIS::MouseEvent &arg, OIS::MouseButtonID id );
-
-    // Ogre::WindowEventListener
-    virtual void windowResized(Ogre::RenderWindow* rw);
-    virtual void windowClosed(Ogre::RenderWindow* rw);
-};
-
-#endif // #ifndef __[!output SAFE_PROJECT_IDENTIFIER_NAME]_h_
+/*
+-----------------------------------------------------------------------------
+Filename:    [!output SAFE_PROJECT_IDENTIFIER_NAME].h
+-----------------------------------------------------------------------------
+
+
+This source file is generated by the
+   ___                   _              __    __ _                  _ 
+  /___\__ _ _ __ ___    /_\  _ __  _ __/ / /\ \ (_)______ _ _ __ __| |
+ //  // _` | '__/ _ \  //_\\| '_ \| '_ \ \/  \/ / |_  / _` | '__/ _` |
+/ \_// (_| | | |  __/ /  _  \ |_) | |_) \  /\  /| |/ / (_| | | | (_| |
+\___/ \__, |_|  \___| \_/ \_/ .__/| .__/ \/  \/ |_/___\__,_|_|  \__,_|
+      |___/                 |_|   |_|                                 
+      Ogre 1.7.x Application Wizard for VC10 (July 2011)
+      http://code.google.com/p/ogreappwizards/
+-----------------------------------------------------------------------------
+*/
+#ifndef __[!output SAFE_PROJECT_IDENTIFIER_NAME]_h_
+#define __[!output SAFE_PROJECT_IDENTIFIER_NAME]_h_
+
+#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
+#include "../res/resource.h"
+#endif
+
+#include <OgreCamera.h>
+#include <OgreEntity.h>
+#include <OgreLogManager.h>
+#include <OgreRoot.h>
+#include <OgreViewport.h>
+#include <OgreSceneManager.h>
+#include <OgreRenderWindow.h>
+[!if !NO_CONFIG]
+#include <OgreConfigFile.h>
+[!endif]
+
+#include <OISEvents.h>
+#include <OISInputManager.h>
+#include <OISKeyboard.h>
+#include <OISMouse.h>
+
+#include <SdkTrays.h>
+#include <SdkCameraMan.h>
+
+class [!output SAFE_PROJECT_IDENTIFIER_NAME] : public Ogre::FrameListener, public Ogre::WindowEventListener, public OIS::KeyListener, public OIS::MouseListener, OgreBites::SdkTrayListener
+{
+public:
+    [!output SAFE_PROJECT_IDENTIFIER_NAME](void);
+    virtual ~[!output SAFE_PROJECT_IDENTIFIER_NAME](void);
+    bool go(void);
+protected:
+    Ogre::Root *mRoot;
+    Ogre::Camera* mCamera;
+    Ogre::SceneManager* mSceneMgr;
+    Ogre::RenderWindow* mWindow;
+[!if !NO_CONFIG]
+    Ogre::String mResourcesCfg;
+    Ogre::String mPluginsCfg;
+[!endif]
+
+    // OgreBites
+    OgreBites::SdkTrayManager* mTrayMgr;
+    OgreBites::SdkCameraMan* mCameraMan;     // basic camera controller
+    OgreBites::ParamsPanel* mDetailsPanel;   // sample details panel
+    bool mCursorWasVisible;                  // was cursor visible before dialog appeared
+    bool mShutDown;
+
+    // OIS Input devices
+    OIS::InputManager* mInputManager;
+    OIS::Mouse*    mMouse;
+    OIS::Keyboard* mKeyboard;
+
+    // Ogre::FrameListener
+    virtual bool frameRenderingQueued(const Ogre::FrameEvent& evt);
+
+    // OIS::KeyListener
+    virtual bool keyPressed( const OIS::KeyEvent &arg );
+    virtual bool keyReleased( const OIS::KeyEvent &arg );
+    // OIS::MouseListener
+    virtual bool mouseMoved( const OIS::MouseEvent &arg );
+    virtual bool mousePressed( const OIS::MouseEvent &arg, OIS::MouseButtonID id );
+    virtual bool mouseReleased( const OIS::MouseEvent &arg, OIS::MouseButtonID id );
+
+    // Ogre::WindowEventListener
+    virtual void windowResized(Ogre::RenderWindow* rw);
+    virtual void windowClosed(Ogre::RenderWindow* rw);
+};
+
+#endif // #ifndef __[!output SAFE_PROJECT_IDENTIFIER_NAME]_h_

VC10/Files/templates/1033/include/root_one.h

-/*
------------------------------------------------------------------------------
-Filename:    [!output SAFE_PROJECT_IDENTIFIER_NAME].h
------------------------------------------------------------------------------
-
-
-This source file is generated by the
-   ___                   _              __    __ _                  _ 
-  /___\__ _ _ __ ___    /_\  _ __  _ __/ / /\ \ (_)______ _ _ __ __| |
- //  // _` | '__/ _ \  //_\\| '_ \| '_ \ \/  \/ / |_  / _` | '__/ _` |
-/ \_// (_| | | |  __/ /  _  \ |_) | |_) \  /\  /| |/ / (_| | | | (_| |
-\___/ \__, |_|  \___| \_/ \_/ .__/| .__/ \/  \/ |_/___\__,_|_|  \__,_|
-      |___/                 |_|   |_|                                 
-      Ogre 1.7.x Application Wizard for VC10 (August 2010)
-      http://code.google.com/p/ogreappwizards/
------------------------------------------------------------------------------
-*/
-#ifndef __[!output SAFE_PROJECT_IDENTIFIER_NAME]_h_
-#define __[!output SAFE_PROJECT_IDENTIFIER_NAME]_h_
-
-#include <OgreCamera.h>
-#include <OgreEntity.h>
-#include <OgreLogManager.h>
-#include <OgreRoot.h>
-#include <OgreViewport.h>
-#include <OgreSceneManager.h>
-#include <OgreRenderWindow.h>
-[!if !NO_CONFIG]
-#include <OgreConfigFile.h>
-[!endif]
-
-#include <OISEvents.h>
-#include <OISInputManager.h>
-#include <OISKeyboard.h>
-#include <OISMouse.h>
-
-#include <SdkTrays.h>
-#include <SdkCameraMan.h>
-
-class [!output SAFE_PROJECT_IDENTIFIER_NAME] : public Ogre::FrameListener, public Ogre::WindowEventListener, public OIS::KeyListener, public OIS::MouseListener, OgreBites::SdkTrayListener
-{
-public:
-    [!output SAFE_PROJECT_IDENTIFIER_NAME](void);
-    virtual ~[!output SAFE_PROJECT_IDENTIFIER_NAME](void);
-
-    void go(void);
-
-protected:
-    bool setup();
-    bool configure(void);
-    void chooseSceneManager(void);
-    void createCamera(void);
-    void createFrameListener(void);
-	void createScene(void);
-    void destroyScene(void);
-    void createViewports(void);
-    void setupResources(void);
-    void createResourceListener(void);
-    void loadResources(void);
-
-    // Ogre::FrameListener
-    virtual bool frameRenderingQueued(const Ogre::FrameEvent& evt);
-
-    // OIS::KeyListener
-    virtual bool keyPressed( const OIS::KeyEvent &arg );
-    virtual bool keyReleased( const OIS::KeyEvent &arg );
-    // OIS::MouseListener
-    virtual bool mouseMoved( const OIS::MouseEvent &arg );
-    virtual bool mousePressed( const OIS::MouseEvent &arg, OIS::MouseButtonID id );
-    virtual bool mouseReleased( const OIS::MouseEvent &arg, OIS::MouseButtonID id );
-
-    // Ogre::WindowEventListener
-    //Adjust mouse clipping area
-    virtual void windowResized(Ogre::RenderWindow* rw);
-    //Unattach OIS before window shutdown (very important under Linux)
-    virtual void windowClosed(Ogre::RenderWindow* rw);
-
-    Ogre::Root *mRoot;
-    Ogre::Camera* mCamera;
-    Ogre::SceneManager* mSceneMgr;
-    Ogre::RenderWindow* mWindow;
-[!if !NO_CONFIG]
-    Ogre::String mResourcesCfg;
-    Ogre::String mPluginsCfg;
-[!endif]
-
-    // OgreBites
-    OgreBites::SdkTrayManager* mTrayMgr;
-    OgreBites::SdkCameraMan* mCameraMan;     // basic camera controller
-    OgreBites::ParamsPanel* mDetailsPanel;   // sample details panel
-    bool mCursorWasVisible;                  // was cursor visible before dialog appeared
-    bool mShutDown;
-
-    //OIS Input devices
-    OIS::InputManager* mInputManager;
-    OIS::Mouse*    mMouse;
-    OIS::Keyboard* mKeyboard;
-};
-
-#endif // #ifndef __[!output SAFE_PROJECT_IDENTIFIER_NAME]_h_
+/*
+-----------------------------------------------------------------------------
+Filename:    [!output SAFE_PROJECT_IDENTIFIER_NAME].h
+-----------------------------------------------------------------------------
+
+
+This source file is generated by the
+   ___                   _              __    __ _                  _ 
+  /___\__ _ _ __ ___    /_\  _ __  _ __/ / /\ \ (_)______ _ _ __ __| |
+ //  // _` | '__/ _ \  //_\\| '_ \| '_ \ \/  \/ / |_  / _` | '__/ _` |
+/ \_// (_| | | |  __/ /  _  \ |_) | |_) \  /\  /| |/ / (_| | | | (_| |
+\___/ \__, |_|  \___| \_/ \_/ .__/| .__/ \/  \/ |_/___\__,_|_|  \__,_|
+      |___/                 |_|   |_|                                 
+      Ogre 1.7.x Application Wizard for VC10 (July 2011)
+      http://code.google.com/p/ogreappwizards/
+-----------------------------------------------------------------------------
+*/
+#ifndef __[!output SAFE_PROJECT_IDENTIFIER_NAME]_h_
+#define __[!output SAFE_PROJECT_IDENTIFIER_NAME]_h_
+
+#include <OgreCamera.h>
+#include <OgreEntity.h>
+#include <OgreLogManager.h>
+#include <OgreRoot.h>
+#include <OgreViewport.h>
+#include <OgreSceneManager.h>
+#include <OgreRenderWindow.h>
+[!if !NO_CONFIG]
+#include <OgreConfigFile.h>
+[!endif]
+
+#include <OISEvents.h>
+#include <OISInputManager.h>
+#include <OISKeyboard.h>
+#include <OISMouse.h>
+
+#include <SdkTrays.h>
+#include <SdkCameraMan.h>
+
+class [!output SAFE_PROJECT_IDENTIFIER_NAME] : public Ogre::FrameListener, public Ogre::WindowEventListener, public OIS::KeyListener, public OIS::MouseListener, OgreBites::SdkTrayListener
+{
+public:
+    [!output SAFE_PROJECT_IDENTIFIER_NAME](void);
+    virtual ~[!output SAFE_PROJECT_IDENTIFIER_NAME](void);
+
+    void go(void);
+
+protected:
+    bool setup();
+    bool configure(void);
+    void chooseSceneManager(void);
+    void createCamera(void);
+    void createFrameListener(void);
+	void createScene(void);
+    void destroyScene(void);
+    void createViewports(void);
+    void setupResources(void);
+    void createResourceListener(void);
+    void loadResources(void);
+
+    // Ogre::FrameListener
+    virtual bool frameRenderingQueued(const Ogre::FrameEvent& evt);
+
+    // OIS::KeyListener
+    virtual bool keyPressed( const OIS::KeyEvent &arg );
+    virtual bool keyReleased( const OIS::KeyEvent &arg );
+    // OIS::MouseListener
+    virtual bool mouseMoved( const OIS::MouseEvent &arg );
+    virtual bool mousePressed( const OIS::MouseEvent &arg, OIS::MouseButtonID id );
+    virtual bool mouseReleased( const OIS::MouseEvent &arg, OIS::MouseButtonID id );
+
+    // Ogre::WindowEventListener
+    //Adjust mouse clipping area
+    virtual void windowResized(Ogre::RenderWindow* rw);
+    //Unattach OIS before window shutdown (very important under Linux)
+    virtual void windowClosed(Ogre::RenderWindow* rw);
+
+    Ogre::Root *mRoot;
+    Ogre::Camera* mCamera;
+    Ogre::SceneManager* mSceneMgr;
+    Ogre::RenderWindow* mWindow;
+[!if !NO_CONFIG]
+    Ogre::String mResourcesCfg;
+    Ogre::String mPluginsCfg;
+[!endif]
+
+    // OgreBites
+    OgreBites::SdkTrayManager* mTrayMgr;
+    OgreBites::SdkCameraMan* mCameraMan;     // basic camera controller
+    OgreBites::ParamsPanel* mDetailsPanel;   // sample details panel
+    bool mCursorWasVisible;                  // was cursor visible before dialog appeared
+    bool mShutDown;
+
+    //OIS Input devices
+    OIS::InputManager* mInputManager;
+    OIS::Mouse*    mMouse;
+    OIS::Keyboard* mKeyboard;
+};
+
+#endif // #ifndef __[!output SAFE_PROJECT_IDENTIFIER_NAME]_h_

VC10/Files/templates/1033/src/BaseApplication.cpp

-/*
------------------------------------------------------------------------------
-Filename:    BaseApplication.cpp
------------------------------------------------------------------------------
-
-
-This source file is generated by the
-   ___                   _              __    __ _                  _ 
-  /___\__ _ _ __ ___    /_\  _ __  _ __/ / /\ \ (_)______ _ _ __ __| |
- //  // _` | '__/ _ \  //_\\| '_ \| '_ \ \/  \/ / |_  / _` | '__/ _` |
-/ \_// (_| | | |  __/ /  _  \ |_) | |_) \  /\  /| |/ / (_| | | | (_| |
-\___/ \__, |_|  \___| \_/ \_/ .__/| .__/ \/  \/ |_/___\__,_|_|  \__,_|
-      |___/                 |_|   |_|                                 
-      Ogre 1.7.x Application Wizard for VC10 (August 2010)
-      http://code.google.com/p/ogreappwizards/
------------------------------------------------------------------------------
-*/
-#include "BaseApplication.h"
-
-#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
-#include "../res/resource.h"
-#endif
-
-[!if NO_CONFIG]
-#include <OgrePlugin.h>
-[!endif]
-
-//-------------------------------------------------------------------------------------
-BaseApplication::BaseApplication(void)
-    : mRoot(0),
-    mCamera(0),
-    mSceneMgr(0),
-    mWindow(0),
-[!if !NO_CONFIG]
-    mResourcesCfg(Ogre::StringUtil::BLANK),
-    mPluginsCfg(Ogre::StringUtil::BLANK),
-[!endif]
-    mTrayMgr(0),
-    mCameraMan(0),
-    mDetailsPanel(0),
-    mCursorWasVisible(false),
-    mShutDown(false),
-    mInputManager(0),
-    mMouse(0),
-    mKeyboard(0)
-{
-}
-
-//-------------------------------------------------------------------------------------
-BaseApplication::~BaseApplication(void)
-{
-    if (mTrayMgr) delete mTrayMgr;
-    if (mCameraMan) delete mCameraMan;
-
-    //Remove ourself as a Window listener
-    Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this);
-    windowClosed(mWindow);
-    delete mRoot;
-}
-
-//-------------------------------------------------------------------------------------
-bool BaseApplication::configure(void)
-{
-    // Show the configuration dialog and initialise the system
-    // You can skip this and use root.restoreConfig() to load configuration
-    // settings if you were sure there are valid ones saved in ogre.cfg
-[!if NO_CONFIG]
-    // Grab the OpenGL RenderSystem, or exit
-    Ogre::RenderSystem* rs = mRoot->getRenderSystemByName("OpenGL Rendering Subsystem");
-    if(!(rs->getName() == "OpenGL Rendering Subsystem"))
-    {
-        return false; //No RenderSystem found
-    }
-    // configure our RenderSystem
-    rs->setConfigOption("Full Screen", "No");
-    rs->setConfigOption("VSync", "No");
-    rs->setConfigOption("Video Mode", "800 x 600 @ 32-bit");
-
-    mRoot->setRenderSystem(rs);
-
-    mWindow = mRoot->initialise(true, "LowLevelOgre Render Window");
-
-    // Let's add a nice window icon
-#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
-    HWND hwnd;
-    mWindow->getCustomAttribute("WINDOW", (void*)&hwnd);
-    LONG iconID   = (LONG)LoadIcon( GetModuleHandle(0), MAKEINTRESOURCE(IDI_APPICON) );
-    SetClassLong( hwnd, GCL_HICON, iconID );
-#endif
-    return true;
-[!else]
-[!if SKIP_CONFIG]
-    if(mRoot->restoreConfig() || mRoot->showConfigDialog())
-[!else]
-    if(mRoot->showConfigDialog())
-[!endif]
-    {
-        // If returned true, user clicked OK so initialise
-        // Here we choose to let the system create a default rendering window by passing 'true'
-        mWindow = mRoot->initialise(true, "[!output PROJECT_NAME] Render Window");
-
-        // Let's add a nice window icon
-#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
-        HWND hwnd;
-        mWindow->getCustomAttribute("WINDOW", (void*)&hwnd);
-        LONG iconID   = (LONG)LoadIcon( GetModuleHandle(0), MAKEINTRESOURCE(IDI_APPICON) );
-        SetClassLong( hwnd, GCL_HICON, iconID );
-#endif
-        return true;
-    }
-    else
-    {
-        return false;
-    }
-[!endif]
-}
-//-------------------------------------------------------------------------------------
-void BaseApplication::chooseSceneManager(void)
-{
-    // Get the SceneManager, in this case a generic one
-    mSceneMgr = mRoot->createSceneManager(Ogre::ST_GENERIC);
-}
-//-------------------------------------------------------------------------------------
-void BaseApplication::createCamera(void)
-{
-    // Create the camera
-    mCamera = mSceneMgr->createCamera("PlayerCam");
-
-    // Position it at 500 in Z direction
-    mCamera->setPosition(Ogre::Vector3(0,0,80));
-    // Look back along -Z
-    mCamera->lookAt(Ogre::Vector3(0,0,-300));
-    mCamera->setNearClipDistance(5);
-
-    mCameraMan = new OgreBites::SdkCameraMan(mCamera);   // create a default camera controller
-}
-//-------------------------------------------------------------------------------------
-void BaseApplication::createFrameListener(void)
-{
-    Ogre::LogManager::getSingletonPtr()->logMessage("*** Initializing OIS ***");
-    OIS::ParamList pl;
-    size_t windowHnd = 0;
-    std::ostringstream windowHndStr;
-
-    mWindow->getCustomAttribute("WINDOW", &windowHnd);
-    windowHndStr << windowHnd;
-    pl.insert(std::make_pair(std::string("WINDOW"), windowHndStr.str()));
-
-    mInputManager = OIS::InputManager::createInputSystem( pl );
-
-    mKeyboard = static_cast<OIS::Keyboard*>(mInputManager->createInputObject( OIS::OISKeyboard, true ));
-    mMouse = static_cast<OIS::Mouse*>(mInputManager->createInputObject( OIS::OISMouse, true ));
-
-    mMouse->setEventCallback(this);
-    mKeyboard->setEventCallback(this);
-
-    //Set initial mouse clipping size
-    windowResized(mWindow);
-
-    //Register as a Window listener
-    Ogre::WindowEventUtilities::addWindowEventListener(mWindow, this);
-
-    mTrayMgr = new OgreBites::SdkTrayManager("InterfaceName", mWindow, mMouse, this);
-    mTrayMgr->showFrameStats(OgreBites::TL_BOTTOMLEFT);
-    mTrayMgr->showLogo(OgreBites::TL_BOTTOMRIGHT);
-    mTrayMgr->hideCursor();
-
-    // create a params panel for displaying sample details
-    Ogre::StringVector items;
-    items.push_back("cam.pX");
-    items.push_back("cam.pY");
-    items.push_back("cam.pZ");
-    items.push_back("");
-    items.push_back("cam.oW");
-    items.push_back("cam.oX");
-    items.push_back("cam.oY");
-    items.push_back("cam.oZ");
-    items.push_back("");
-    items.push_back("Filtering");
-    items.push_back("Poly Mode");
-
-    mDetailsPanel = mTrayMgr->createParamsPanel(OgreBites::TL_NONE, "DetailsPanel", 200, items);
-    mDetailsPanel->setParamValue(9, "Bilinear");
-    mDetailsPanel->setParamValue(10, "Solid");
-    mDetailsPanel->hide();
-
-    mRoot->addFrameListener(this);
-}
-//-------------------------------------------------------------------------------------
-void BaseApplication::destroyScene(void)
-{
-}
-//-------------------------------------------------------------------------------------
-void BaseApplication::createViewports(void)
-{
-    // Create one viewport, entire window
-    Ogre::Viewport* vp = mWindow->addViewport(mCamera);
-    vp->setBackgroundColour(Ogre::ColourValue(0,0,0));
-
-    // Alter the camera aspect ratio to match the viewport
-    mCamera->setAspectRatio(
-        Ogre::Real(vp->getActualWidth()) / Ogre::Real(vp->getActualHeight()));
-}
-//-------------------------------------------------------------------------------------
-void BaseApplication::setupResources(void)
-{
-[!if NO_CONFIG]
-    // Only add the minimally required resource locations to load up SDKTrays and the Ogre head mesh
-    Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../../media/packs/SdkTrays.zip", "Zip", "General");
-    Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../../media/materials/programs", "FileSystem", "General");
-    Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../../media/materials/scripts", "FileSystem", "General");
-    Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../../media/materials/textures", "FileSystem", "General");
-    Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../../media/models", "FileSystem", "General");
-[!else]
-    // Load resource paths from config file
-    Ogre::ConfigFile cf;
-    cf.load(mResourcesCfg);
-
-    // Go through all sections & settings in the file
-    Ogre::ConfigFile::SectionIterator seci = cf.getSectionIterator();
-
-    Ogre::String secName, typeName, archName;
-    while (seci.hasMoreElements())
-    {
-        secName = seci.peekNextKey();
-        Ogre::ConfigFile::SettingsMultiMap *settings = seci.getNext();
-        Ogre::ConfigFile::SettingsMultiMap::iterator i;
-        for (i = settings->begin(); i != settings->end(); ++i)
-        {
-            typeName = i->first;
-            archName = i->second;
-            Ogre::ResourceGroupManager::getSingleton().addResourceLocation(
-                archName, typeName, secName);
-        }
-    }
-[!endif]
-}
-//-------------------------------------------------------------------------------------
-void BaseApplication::createResourceListener(void)
-{
-
-}
-//-------------------------------------------------------------------------------------
-void BaseApplication::loadResources(void)
-{
-    Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
-}
-//-------------------------------------------------------------------------------------
-void BaseApplication::go(void)
-{
-[!if !NO_CONFIG]
-#ifdef _DEBUG
-    mResourcesCfg = "resources_d.cfg";
-    mPluginsCfg = "plugins_d.cfg";
-#else
-    mResourcesCfg = "resources.cfg";
-    mPluginsCfg = "plugins.cfg";
-#endif
-[!endif]
-
-    if (!setup())
-        return;
-
-    mRoot->startRendering();
-
-    // clean up
-    destroyScene();
-}
-//-------------------------------------------------------------------------------------
-bool BaseApplication::setup(void)
-{
-[!if NO_CONFIG]
-    mRoot = new Ogre::Root("", "");
-
-    // A list of required plugins
-    Ogre::StringVector required_plugins;
-    required_plugins.push_back("GL RenderSystem");
-    required_plugins.push_back("Octree & Terrain Scene Manager");
-
-    // List of plugins to load
-    Ogre::StringVector plugins_toLoad;
-    plugins_toLoad.push_back("RenderSystem_GL");
-    plugins_toLoad.push_back("Plugin_OctreeSceneManager");
-
-    // Load the OpenGL RenderSystem and the Octree SceneManager plugins
-    for (Ogre::StringVector::iterator j = plugins_toLoad.begin(); j != plugins_toLoad.end(); j++)
-    {
-#ifdef _DEBUG
-        mRoot->loadPlugin(*j + Ogre::String("_d"));
-#else
-        mRoot->loadPlugin(*j);
-#endif;
-    }
-
-    // Check if the required plugins are installed and ready for use
-    // If not: exit the application
-    Ogre::Root::PluginInstanceList ip = mRoot->getInstalledPlugins();
-    for (Ogre::StringVector::iterator j = required_plugins.begin(); j != required_plugins.end(); j++)
-    {
-        bool found = false;
-        // try to find the required plugin in the current installed plugins
-        for (Ogre::Root::PluginInstanceList::iterator k = ip.begin(); k != ip.end(); k++)
-        {
-            if ((*k)->getName() == *j)
-            {
-                found = true;
-                break;
-            }
-        }
-        if (!found)  // return false because a required plugin is not available
-        {
-            return false;
-        }
-    }
-[!else]
-    mRoot = new Ogre::Root(mPluginsCfg);
-[!endif]
-
-    setupResources();
-
-    bool carryOn = configure();
-    if (!carryOn) return false;
-
-    chooseSceneManager();
-    createCamera();
-    createViewports();
-
-    // Set default mipmap level (NB some APIs ignore this)
-    Ogre::TextureManager::getSingleton().setDefaultNumMipmaps(5);
-
-    // Create any resource listeners (for loading screens)
-    createResourceListener();
-    // Load resources
-    loadResources();
-
-    createFrameListener();
-
-    // Create the scene
-    createScene();
-
-    return true;
-};
-//-------------------------------------------------------------------------------------
-bool BaseApplication::frameRenderingQueued(const Ogre::FrameEvent& evt)
-{
-    if(mWindow->isClosed())
-        return false;
-
-    if(mShutDown)
-        return false;
-
-    //Need to capture/update each device
-    mKeyboard->capture();
-    mMouse->capture();
-
-    mTrayMgr->frameRenderingQueued(evt);
-
-    if (!mTrayMgr->isDialogVisible())
-    {
-        mCameraMan->frameRenderingQueued(evt);   // if dialog isn't up, then update the camera
-        if (mDetailsPanel->isVisible())   // if details panel is visible, then update its contents
-        {
-            mDetailsPanel->setParamValue(0, Ogre::StringConverter::toString(mCamera->getDerivedPosition().x));
-            mDetailsPanel->setParamValue(1, Ogre::StringConverter::toString(mCamera->getDerivedPosition().y));
-            mDetailsPanel->setParamValue(2, Ogre::StringConverter::toString(mCamera->getDerivedPosition().z));
-            mDetailsPanel->setParamValue(4, Ogre::StringConverter::toString(mCamera->getDerivedOrientation().w));
-            mDetailsPanel->setParamValue(5, Ogre::StringConverter::toString(mCamera->getDerivedOrientation().x));
-            mDetailsPanel->setParamValue(6, Ogre::StringConverter::toString(mCamera->getDerivedOrientation().y));
-            mDetailsPanel->setParamValue(7, Ogre::StringConverter::toString(mCamera->getDerivedOrientation().z));
-        }
-    }
-
-    return true;
-}
-//-------------------------------------------------------------------------------------
-bool BaseApplication::keyPressed( const OIS::KeyEvent &arg )
-{
-    if (mTrayMgr->isDialogVisible()) return true;   // don't process any more keys if dialog is up
-
-    if (arg.key == OIS::KC_F)   // toggle visibility of advanced frame stats
-    {
-        mTrayMgr->toggleAdvancedFrameStats();
-    }
-    else if (arg.key == OIS::KC_G)   // toggle visibility of even rarer debugging details
-    {
-        if (mDetailsPanel->getTrayLocation() == OgreBites::TL_NONE)
-        {
-            mTrayMgr->moveWidgetToTray(mDetailsPanel, OgreBites::TL_TOPRIGHT, 0);
-            mDetailsPanel->show();
-        }
-        else
-        {
-            mTrayMgr->removeWidgetFromTray(mDetailsPanel);
-            mDetailsPanel->hide();
-        }
-    }
-    else if (arg.key == OIS::KC_T)   // cycle polygon rendering mode
-    {
-        Ogre::String newVal;
-        Ogre::TextureFilterOptions tfo;
-        unsigned int aniso;
-
-        switch (mDetailsPanel->getParamValue(9).asUTF8()[0])
-        {
-        case 'B':
-            newVal = "Trilinear";
-            tfo = Ogre::TFO_TRILINEAR;
-            aniso = 1;
-            break;
-        case 'T':
-            newVal = "Anisotropic";
-            tfo = Ogre::TFO_ANISOTROPIC;
-            aniso = 8;
-            break;
-        case 'A':
-            newVal = "None";
-            tfo = Ogre::TFO_NONE;
-            aniso = 1;
-            break;
-        default:
-            newVal = "Bilinear";
-            tfo = Ogre::TFO_BILINEAR;
-            aniso = 1;
-        }
-
-        Ogre::MaterialManager::getSingleton().setDefaultTextureFiltering(tfo);
-        Ogre::MaterialManager::getSingleton().setDefaultAnisotropy(aniso);
-        mDetailsPanel->setParamValue(9, newVal);
-    }
-    else if (arg.key == OIS::KC_R)   // cycle polygon rendering mode
-    {
-        Ogre::String newVal;
-        Ogre::PolygonMode pm;
-
-        switch (mCamera->getPolygonMode())
-        {
-        case Ogre::PM_SOLID:
-            newVal = "Wireframe";
-            pm = Ogre::PM_WIREFRAME;
-            break;
-        case Ogre::PM_WIREFRAME:
-            newVal = "Points";
-            pm = Ogre::PM_POINTS;
-            break;
-        default:
-            newVal = "Solid";
-            pm = Ogre::PM_SOLID;
-        }
-
-        mCamera->setPolygonMode(pm);
-        mDetailsPanel->setParamValue(10, newVal);
-    }
-    else if(arg.key == OIS::KC_F5)   // refresh all textures
-    {
-        Ogre::TextureManager::getSingleton().reloadAll();
-    }
-    else if (arg.key == OIS::KC_SYSRQ)   // take a screenshot
-    {
-        mWindow->writeContentsToTimestampedFile("screenshot", ".jpg");
-    }
-    else if (arg.key == OIS::KC_ESCAPE)
-    {
-        mShutDown = true;
-    }
-
-    mCameraMan->injectKeyDown(arg);
-    return true;
-}
-
-bool BaseApplication::keyReleased( const OIS::KeyEvent &arg )
-{
-    mCameraMan->injectKeyUp(arg);
-    return true;
-}
-
-bool BaseApplication::mouseMoved( const OIS::MouseEvent &arg )
-{
-    if (mTrayMgr->injectMouseMove(arg)) return true;
-    mCameraMan->injectMouseMove(arg);
-    return true;
-}
-
-bool BaseApplication::mousePressed( const OIS::MouseEvent &arg, OIS::MouseButtonID id )
-{
-    if (mTrayMgr->injectMouseDown(arg, id)) return true;
-    mCameraMan->injectMouseDown(arg, id);
-    return true;
-}
-
-bool BaseApplication::mouseReleased( const OIS::MouseEvent &arg, OIS::MouseButtonID id )
-{
-    if (mTrayMgr->injectMouseUp(arg, id)) return true;
-    mCameraMan->injectMouseUp(arg, id);
-    return true;
-}
-
-//Adjust mouse clipping area
-void BaseApplication::windowResized(Ogre::RenderWindow* rw)
-{
-    unsigned int width, height, depth;
-    int left, top;
-    rw->getMetrics(width, height, depth, left, top);
-
-    const OIS::MouseState &ms = mMouse->getMouseState();
-    ms.width = width;
-    ms.height = height;
-}
-
-//Unattach OIS before window shutdown (very important under Linux)
-void BaseApplication::windowClosed(Ogre::RenderWindow* rw)
-{
-    //Only close for window that created OIS (the main window in these demos)
-    if( rw == mWindow )
-    {
-        if( mInputManager )
-        {
-            mInputManager->destroyInputObject( mMouse );
-            mInputManager->destroyInputObject( mKeyboard );
-
-            OIS::InputManager::destroyInputSystem(mInputManager);
-            mInputManager = 0;
-        }
-    }
-}
+/*
+-----------------------------------------------------------------------------
+Filename:    BaseApplication.cpp
+-----------------------------------------------------------------------------
+
+
+This source file is generated by the
+   ___                   _              __    __ _                  _ 
+  /___\__ _ _ __ ___    /_\  _ __  _ __/ / /\ \ (_)______ _ _ __ __| |
+ //  // _` | '__/ _ \  //_\\| '_ \| '_ \ \/  \/ / |_  / _` | '__/ _` |
+/ \_// (_| | | |  __/ /  _  \ |_) | |_) \  /\  /| |/ / (_| | | | (_| |
+\___/ \__, |_|  \___| \_/ \_/ .__/| .__/ \/  \/ |_/___\__,_|_|  \__,_|
+      |___/                 |_|   |_|                                 
+      Ogre 1.7.x Application Wizard for VC10 (July 2011)
+      http://code.google.com/p/ogreappwizards/
+-----------------------------------------------------------------------------
+*/
+#include "BaseApplication.h"
+
+#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
+#include "../res/resource.h"
+#endif
+
+[!if NO_CONFIG]
+#include <OgrePlugin.h>
+[!endif]
+
+//-------------------------------------------------------------------------------------
+BaseApplication::BaseApplication(void)
+    : mRoot(0),
+    mCamera(0),
+    mSceneMgr(0),
+    mWindow(0),
+[!if !NO_CONFIG]
+    mResourcesCfg(Ogre::StringUtil::BLANK),
+    mPluginsCfg(Ogre::StringUtil::BLANK),
+[!endif]
+    mTrayMgr(0),
+    mCameraMan(0),
+    mDetailsPanel(0),
+    mCursorWasVisible(false),
+    mShutDown(false),
+    mInputManager(0),
+    mMouse(0),
+    mKeyboard(0)
+{
+}
+
+//-------------------------------------------------------------------------------------
+BaseApplication::~BaseApplication(void)
+{
+    if (mTrayMgr) delete mTrayMgr;
+    if (mCameraMan) delete mCameraMan;
+
+    //Remove ourself as a Window listener
+    Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this);
+    windowClosed(mWindow);
+    delete mRoot;
+}
+
+//-------------------------------------------------------------------------------------
+bool BaseApplication::configure(void)
+{
+    // Show the configuration dialog and initialise the system
+    // You can skip this and use root.restoreConfig() to load configuration
+    // settings if you were sure there are valid ones saved in ogre.cfg
+[!if NO_CONFIG]
+    // Grab the OpenGL RenderSystem, or exit
+    Ogre::RenderSystem* rs = mRoot->getRenderSystemByName("OpenGL Rendering Subsystem");
+    if(!(rs->getName() == "OpenGL Rendering Subsystem"))
+    {
+        return false; //No RenderSystem found
+    }
+    // configure our RenderSystem
+    rs->setConfigOption("Full Screen", "No");
+    rs->setConfigOption("VSync", "No");
+    rs->setConfigOption("Video Mode", "800 x 600 @ 32-bit");
+
+    mRoot->setRenderSystem(rs);
+
+    mWindow = mRoot->initialise(true, "LowLevelOgre Render Window");
+
+    // Let's add a nice window icon
+#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
+    HWND hwnd;
+    mWindow->getCustomAttribute("WINDOW", (void*)&hwnd);
+    LONG iconID   = (LONG)LoadIcon( GetModuleHandle(0), MAKEINTRESOURCE(IDI_APPICON) );
+    SetClassLong( hwnd, GCL_HICON, iconID );
+#endif
+    return true;
+[!else]
+[!if SKIP_CONFIG]
+    if(mRoot->restoreConfig() || mRoot->showConfigDialog())
+[!else]
+    if(mRoot->showConfigDialog())
+[!endif]
+    {
+        // If returned true, user clicked OK so initialise
+        // Here we choose to let the system create a default rendering window by passing 'true'
+        mWindow = mRoot->initialise(true, "[!output PROJECT_NAME] Render Window");
+
+        // Let's add a nice window icon
+#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
+        HWND hwnd;
+        mWindow->getCustomAttribute("WINDOW", (void*)&hwnd);
+        LONG iconID   = (LONG)LoadIcon( GetModuleHandle(0), MAKEINTRESOURCE(IDI_APPICON) );
+        SetClassLong( hwnd, GCL_HICON, iconID );
+#endif
+        return true;
+    }
+    else
+    {
+        return false;
+    }
+[!endif]
+}
+//-------------------------------------------------------------------------------------
+void BaseApplication::chooseSceneManager(void)
+{
+    // Get the SceneManager, in this case a generic one
+    mSceneMgr = mRoot->createSceneManager(Ogre::ST_GENERIC);
+}
+//-------------------------------------------------------------------------------------
+void BaseApplication::createCamera(void)
+{
+    // Create the camera
+    mCamera = mSceneMgr->createCamera("PlayerCam");
+
+    // Position it at 500 in Z direction
+    mCamera->setPosition(Ogre::Vector3(0,0,80));
+    // Look back along -Z
+    mCamera->lookAt(Ogre::Vector3(0,0,-300));
+    mCamera->setNearClipDistance(5);
+
+    mCameraMan = new OgreBites::SdkCameraMan(mCamera);   // create a default camera controller
+}
+//-------------------------------------------------------------------------------------
+void BaseApplication::createFrameListener(void)
+{
+    Ogre::LogManager::getSingletonPtr()->logMessage("*** Initializing OIS ***");
+    OIS::ParamList pl;
+    size_t windowHnd = 0;
+    std::ostringstream windowHndStr;
+
+    mWindow->getCustomAttribute("WINDOW", &windowHnd);
+    windowHndStr << windowHnd;
+    pl.insert(std::make_pair(std::string("WINDOW"), windowHndStr.str()));
+
+    mInputManager = OIS::InputManager::createInputSystem( pl );
+
+    mKeyboard = static_cast<OIS::Keyboard*>(mInputManager->createInputObject( OIS::OISKeyboard, true ));
+    mMouse = static_cast<OIS::Mouse*>(mInputManager->createInputObject( OIS::OISMouse, true ));
+
+    mMouse->setEventCallback(this);
+    mKeyboard->setEventCallback(this);
+
+    //Set initial mouse clipping size
+    windowResized(mWindow);
+
+    //Register as a Window listener
+    Ogre::WindowEventUtilities::addWindowEventListener(mWindow, this);
+
+    mTrayMgr = new OgreBites::SdkTrayManager("InterfaceName", mWindow, mMouse, this);
+    mTrayMgr->showFrameStats(OgreBites::TL_BOTTOMLEFT);
+    mTrayMgr->showLogo(OgreBites::TL_BOTTOMRIGHT);
+    mTrayMgr->hideCursor();
+
+    // create a params panel for displaying sample details
+    Ogre::StringVector items;
+    items.push_back("cam.pX");
+    items.push_back("cam.pY");
+    items.push_back("cam.pZ");
+    items.push_back("");
+    items.push_back("cam.oW");
+    items.push_back("cam.oX");
+    items.push_back("cam.oY");
+    items.push_back("cam.oZ");
+    items.push_back("");
+    items.push_back("Filtering");
+    items.push_back("Poly Mode");
+
+    mDetailsPanel = mTrayMgr->createParamsPanel(OgreBites::TL_NONE, "DetailsPanel", 200, items);
+    mDetailsPanel->setParamValue(9, "Bilinear");
+    mDetailsPanel->setParamValue(10, "Solid");
+    mDetailsPanel->hide();
+
+    mRoot->addFrameListener(this);
+}
+//-------------------------------------------------------------------------------------
+void BaseApplication::destroyScene(void)
+{
+}
+//-------------------------------------------------------------------------------------
+void BaseApplication::createViewports(void)
+{
+    // Create one viewport, entire window
+    Ogre::Viewport* vp = mWindow->addViewport(mCamera);
+    vp->setBackgroundColour(Ogre::ColourValue(0,0,0));
+
+    // Alter the camera aspect ratio to match the viewport
+    mCamera->setAspectRatio(
+        Ogre::Real(vp->getActualWidth()) / Ogre::Real(vp->getActualHeight()));
+}
+//-------------------------------------------------------------------------------------
+void BaseApplication::setupResources(void)
+{
+[!if NO_CONFIG]
+    // Only add the minimally required resource locations to load up SDKTrays and the Ogre head mesh
+    Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../../media/packs/SdkTrays.zip", "Zip", "General");
+    Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../../media/materials/programs", "FileSystem", "General");
+    Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../../media/materials/scripts", "FileSystem", "General");
+    Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../../media/materials/textures", "FileSystem", "General");
+    Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../../media/models", "FileSystem", "General");
+[!else]
+    // Load resource paths from config file
+    Ogre::ConfigFile cf;
+    cf.load(mResourcesCfg);
+
+    // Go through all sections & settings in the file
+    Ogre::ConfigFile::SectionIterator seci = cf.getSectionIterator();
+
+    Ogre::String secName, typeName, archName;
+    while (seci.hasMoreElements())
+    {
+        secName = seci.peekNextKey();
+        Ogre::ConfigFile::SettingsMultiMap *settings = seci.getNext();
+        Ogre::ConfigFile::SettingsMultiMap::iterator i;
+        for (i = settings->begin(); i != settings->end(); ++i)
+        {
+            typeName = i->first;
+            archName = i->second;
+            Ogre::ResourceGroupManager::getSingleton().addResourceLocation(
+                archName, typeName, secName);
+        }
+    }
+[!endif]
+}
+//-------------------------------------------------------------------------------------
+void BaseApplication::createResourceListener(void)
+{
+
+}
+//-------------------------------------------------------------------------------------
+void BaseApplication::loadResources(void)
+{
+    Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
+}
+//-------------------------------------------------------------------------------------
+void BaseApplication::go(void)
+{
+[!if !NO_CONFIG]
+#ifdef _DEBUG
+    mResourcesCfg = "resources_d.cfg";
+    mPluginsCfg = "plugins_d.cfg";
+#else
+    mResourcesCfg = "resources.cfg";
+    mPluginsCfg = "plugins.cfg";
+#endif
+[!endif]
+
+    if (!setup())
+        return;
+
+    mRoot->startRendering();
+
+    // clean up
+    destroyScene();
+}
+//-------------------------------------------------------------------------------------
+bool BaseApplication::setup(void)
+{
+[!if NO_CONFIG]
+    mRoot = new Ogre::Root("", "");
+
+    // A list of required plugins
+    Ogre::StringVector required_plugins;
+    required_plugins.push_back("GL RenderSystem");
+    required_plugins.push_back("Octree & Terrain Scene Manager");
+
+    // List of plugins to load
+    Ogre::StringVector plugins_toLoad;
+    plugins_toLoad.push_back("RenderSystem_GL");
+    plugins_toLoad.push_back("Plugin_OctreeSceneManager");
+
+    // Load the OpenGL RenderSystem and the Octree SceneManager plugins
+    for (Ogre::StringVector::iterator j = plugins_toLoad.begin(); j != plugins_toLoad.end(); j++)
+    {
+#ifdef _DEBUG
+        mRoot->loadPlugin(*j + Ogre::String("_d"));
+#else
+        mRoot->loadPlugin(*j);
+#endif;
+    }
+
+    // Check if the required plugins are installed and ready for use
+    // If not: exit the application
+    Ogre::Root::PluginInstanceList ip = mRoot->getInstalledPlugins();
+    for (Ogre::StringVector::iterator j = required_plugins.begin(); j != required_plugins.end(); j++)
+    {
+        bool found = false;
+        // try to find the required plugin in the current installed plugins
+        for (Ogre::Root::PluginInstanceList::iterator k = ip.begin(); k != ip.end(); k++)
+        {
+            if ((*k)->getName() == *j)
+            {
+                found = true;
+                break;
+            }
+        }
+        if (!found)  // return false because a required plugin is not available
+        {
+            return false;
+        }
+    }
+[!else]
+    mRoot = new Ogre::Root(mPluginsCfg);
+[!endif]
+
+    setupResources();
+
+    bool carryOn = configure();
+    if (!carryOn) return false;
+
+    chooseSceneManager();
+    createCamera();
+    createViewports();
+
+    // Set default mipmap level (NB some APIs ignore this)
+    Ogre::TextureManager::getSingleton().setDefaultNumMipmaps(5);
+
+    // Create any resource listeners (for loading screens)
+    createResourceListener();
+    // Load resources
+    loadResources();
+
+    // Create the scene
+    createScene();
+
+    createFrameListener();
+    
+	return true;
+};
+//-------------------------------------------------------------------------------------
+bool BaseApplication::frameRenderingQueued(const Ogre::FrameEvent& evt)
+{
+    if(mWindow->isClosed())
+        return false;
+
+    if(mShutDown)
+        return false;
+
+    //Need to capture/update each device
+    mKeyboard->capture();
+    mMouse->capture();
+
+    mTrayMgr->frameRenderingQueued(evt);
+
+    if (!mTrayMgr->isDialogVisible())
+    {
+        mCameraMan->frameRenderingQueued(evt);   // if dialog isn't up, then update the camera
+        if (mDetailsPanel->isVisible())   // if details panel is visible, then update its contents
+        {
+            mDetailsPanel->setParamValue(0, Ogre::StringConverter::toString(mCamera->getDerivedPosition().x));
+            mDetailsPanel->setParamValue(1, Ogre::StringConverter::toString(mCamera->getDerivedPosition().y));
+            mDetailsPanel->setParamValue(2, Ogre::StringConverter::toString(mCamera->getDerivedPosition().z));
+            mDetailsPanel->setParamValue(4, Ogre::StringConverter::toString(mCamera->getDerivedOrientation().w));
+            mDetailsPanel->setParamValue(5, Ogre::StringConverter::toString(mCamera->getDerivedOrientation().x));
+            mDetailsPanel->setParamValue(6, Ogre::StringConverter::toString(mCamera->getDerivedOrientation().y));
+            mDetailsPanel->setParamValue(7, Ogre::StringConverter::toString(mCamera->getDerivedOrientation().z));
+        }
+    }
+
+    return true;
+}
+//-------------------------------------------------------------------------------------
+bool BaseApplication::keyPressed( const OIS::KeyEvent &arg )
+{
+    if (mTrayMgr->isDialogVisible()) return true;   // don't process any more keys if dialog is up
+
+    if (arg.key == OIS::KC_F)   // toggle visibility of advanced frame stats
+    {
+        mTrayMgr->toggleAdvancedFrameStats();
+    }
+    else if (arg.key == OIS::KC_G)   // toggle visibility of even rarer debugging details
+    {
+        if (mDetailsPanel->getTrayLocation() == OgreBites::TL_NONE)
+        {
+            mTrayMgr->moveWidgetToTray(mDetailsPanel, OgreBites::TL_TOPRIGHT, 0);
+            mDetailsPanel->show();
+        }
+        else
+        {
+            mTrayMgr->removeWidgetFromTray(mDetailsPanel);
+            mDetailsPanel->hide();
+        }
+    }
+    else if (arg.key == OIS::KC_T)   // cycle polygon rendering mode
+    {
+        Ogre::String newVal;
+        Ogre::TextureFilterOptions tfo;
+        unsigned int aniso;
+
+        switch (mDetailsPanel->getParamValue(9).asUTF8()[0])
+        {
+        case 'B':
+            newVal = "Trilinear";
+            tfo = Ogre::TFO_TRILINEAR;
+            aniso = 1;
+            break;
+        case 'T':
+            newVal = "Anisotropic";
+            tfo = Ogre::TFO_ANISOTROPIC;
+            aniso = 8;
+            break;
+        case 'A':
+            newVal = "None";
+            tfo = Ogre::TFO_NONE;
+            aniso = 1;
+            break;
+        default:
+            newVal = "Bilinear";
+            tfo = Ogre::TFO_BILINEAR;
+            aniso = 1;
+        }
+
+        Ogre::MaterialManager::getSingleton().setDefaultTextureFiltering(tfo);
+        Ogre::MaterialManager::getSingleton().setDefaultAnisotropy(aniso);
+        mDetailsPanel->setParamValue(9, newVal);
+    }
+    else if (arg.key == OIS::KC_R)   // cycle polygon rendering mode
+    {
+        Ogre::String newVal;
+        Ogre::PolygonMode pm;
+
+        switch (mCamera->getPolygonMode())
+        {
+        case Ogre::PM_SOLID:
+            newVal = "Wireframe";
+            pm = Ogre::PM_WIREFRAME;
+            break;
+        case Ogre::PM_WIREFRAME:
+            newVal = "Points";
+            pm = Ogre::PM_POINTS;
+            break;
+        default:
+            newVal = "Solid";
+            pm = Ogre::PM_SOLID;
+        }
+
+        mCamera->setPolygonMode(pm);
+        mDetailsPanel->setParamValue(10, newVal);
+    }
+    else if(arg.key == OIS::KC_F5)   // refresh all textures
+    {
+        Ogre::TextureManager::getSingleton().reloadAll();
+    }
+    else if (arg.key == OIS::KC_SYSRQ)   // take a screenshot
+    {
+        mWindow->writeContentsToTimestampedFile("screenshot", ".jpg");
+    }
+    else if (arg.key == OIS::KC_ESCAPE)
+    {
+        mShutDown = true;
+    }
+
+    mCameraMan->injectKeyDown(arg);
+    return true;
+}
+
+bool BaseApplication::keyReleased( const OIS::KeyEvent &arg )
+{
+    mCameraMan->injectKeyUp(arg);
+    return true;
+}
+
+bool BaseApplication::mouseMoved( const OIS::MouseEvent &arg )
+{
+    if (mTrayMgr->injectMouseMove(arg)) return true;
+    mCameraMan->injectMouseMove(arg);
+    return true;
+}
+
+bool BaseApplication::mousePressed( const OIS::MouseEvent &arg, OIS::MouseButtonID id )
+{
+    if (mTrayMgr->injectMouseDown(arg, id)) return true;
+    mCameraMan->injectMouseDown(arg, id);
+    return true;
+}
+
+bool BaseApplication::mouseReleased( const OIS::MouseEvent &arg, OIS::MouseButtonID id )
+{
+    if (mTrayMgr->injectMouseUp(arg, id)) return true;
+    mCameraMan->injectMouseUp(arg, id);
+    return true;
+}
+
+//Adjust mouse clipping area
+void BaseApplication::windowResized(Ogre::RenderWindow* rw)
+{
+    unsigned int width, height, depth;
+    int left, top;
+    rw->getMetrics(width, height, depth, left, top);
+
+    const OIS::MouseState &ms = mMouse->getMouseState();
+    ms.width = width;
+    ms.height = height;
+}
+
+//Unattach OIS before window shutdown (very important under Linux)
+void BaseApplication::windowClosed(Ogre::RenderWindow* rw)
+{
+    //Only close for window that created OIS (the main window in these demos)
+    if( rw == mWindow )
+    {
+        if( mInputManager )
+        {
+            mInputManager->destroyInputObject( mMouse );
+            mInputManager->destroyInputObject( mKeyboard );
+
+            OIS::InputManager::destroyInputSystem(mInputManager);
+            mInputManager = 0;
+        }
+    }
+}

VC10/Files/templates/1033/src/root.cpp

-/*
------------------------------------------------------------------------------
-Filename:    [!output SAFE_PROJECT_IDENTIFIER_NAME].cpp
------------------------------------------------------------------------------
-
-
-This source file is generated by the
-   ___                   _              __    __ _                  _ 
-  /___\__ _ _ __ ___    /_\  _ __  _ __/ / /\ \ (_)______ _ _ __ __| |
- //  // _` | '__/ _ \  //_\\| '_ \| '_ \ \/  \/ / |_  / _` | '__/ _` |
-/ \_// (_| | | |  __/ /  _  \ |_) | |_) \  /\  /| |/ / (_| | | | (_| |
-\___/ \__, |_|  \___| \_/ \_/ .__/| .__/ \/  \/ |_/___\__,_|_|  \__,_|
-      |___/                 |_|   |_|                                 
-      Ogre 1.7.x Application Wizard for VC10 (August 2010)
-      http://code.google.com/p/ogreappwizards/
------------------------------------------------------------------------------
-*/
-
-#include "[!output SAFE_PROJECT_IDENTIFIER_NAME].h"
-
-//-------------------------------------------------------------------------------------
-[!output SAFE_PROJECT_IDENTIFIER_NAME]::[!output SAFE_PROJECT_IDENTIFIER_NAME](void)
-{
-}
-//-------------------------------------------------------------------------------------
-[!output SAFE_PROJECT_IDENTIFIER_NAME]::~[!output SAFE_PROJECT_IDENTIFIER_NAME](void)
-{
-}
-
-//-------------------------------------------------------------------------------------
-void [!output SAFE_PROJECT_IDENTIFIER_NAME]::createScene(void)
-{
-    Ogre::Entity* ogreHead = mSceneMgr->createEntity("Head", "ogrehead.mesh");
-
-    Ogre::SceneNode* headNode = mSceneMgr->getRootSceneNode()->createChildSceneNode();
-    headNode->attachObject(ogreHead);
-
-    // Set ambient light
-    mSceneMgr->setAmbientLight(Ogre::ColourValue(0.5, 0.5, 0.5));
-
-    // Create a light
-    Ogre::Light* l = mSceneMgr->createLight("MainLight");
-    l->setPosition(20,80,50);
-}
-
-
-
-#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
-#define WIN32_LEAN_AND_MEAN
-#include "windows.h"
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
-    INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
-#else
-    int main(int argc, char *argv[])
-#endif
-    {
-        // Create application object
-        [!output SAFE_PROJECT_IDENTIFIER_NAME] app;
-
-        try {
-            app.go();
-        } catch( Ogre::Exception& e ) {
-#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
-            MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
-#else
-            std::cerr << "An exception has occured: " <<
-                e.getFullDescription().c_str() << std::endl;
-#endif
-        }
-
-        return 0;
-    }
-
-#ifdef __cplusplus
-}
-#endif
+/*
+-----------------------------------------------------------------------------
+Filename:    [!output SAFE_PROJECT_IDENTIFIER_NAME].cpp
+-----------------------------------------------------------------------------
+
+
+This source file is generated by the
+   ___                   _              __    __ _                  _ 
+  /___\__ _ _ __ ___    /_\  _ __  _ __/ / /\ \ (_)______ _ _ __ __| |
+ //  // _` | '__/ _ \  //_\\| '_ \| '_ \ \/  \/ / |_  / _` | '__/ _` |
+/ \_// (_| | | |  __/ /  _  \ |_) | |_) \  /\  /| |/ / (_| | | | (_| |
+\___/ \__, |_|  \___| \_/ \_/ .__/| .__/ \/  \/ |_/___\__,_|_|  \__,_|
+      |___/                 |_|   |_|                                 
+      Ogre 1.7.x Application Wizard for VC10 (July 2011)
+      http://code.google.com/p/ogreappwizards/
+-----------------------------------------------------------------------------
+*/
+
+#include "[!output SAFE_PROJECT_IDENTIFIER_NAME].h"
+
+//-------------------------------------------------------------------------------------
+[!output SAFE_PROJECT_IDENTIFIER_NAME]::[!output SAFE_PROJECT_IDENTIFIER_NAME](void)
+{
+}
+//-------------------------------------------------------------------------------------
+[!output SAFE_PROJECT_IDENTIFIER_NAME]::~[!output SAFE_PROJECT_IDENTIFIER_NAME](void)
+{
+}
+
+//-------------------------------------------------------------------------------------
+void [!output SAFE_PROJECT_IDENTIFIER_NAME]::createScene(void)
+{
+    Ogre::Entity* ogreHead = mSceneMgr->createEntity("Head", "ogrehead.mesh");
+
+    Ogre::SceneNode* headNode = mSceneMgr->getRootSceneNode()->createChildSceneNode();
+    headNode->attachObject(ogreHead);
+
+    // Set ambient light
+    mSceneMgr->setAmbientLight(Ogre::ColourValue(0.5, 0.5, 0.5));
+
+    // Create a light
+    Ogre::Light* l = mSceneMgr->createLight("MainLight");
+    l->setPosition(20,80,50);
+}
+
+
+
+#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
+#define WIN32_LEAN_AND_MEAN
+#include "windows.h"
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
+    INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
+#else
+    int main(int argc, char *argv[])
+#endif
+    {
+        // Create application object
+        [!output SAFE_PROJECT_IDENTIFIER_NAME] app;
+
+        try {
+            app.go();
+        } catch( Ogre::Exception& e ) {
+#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
+            MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
+#else
+            std::cerr << "An exception has occured: " <<
+                e.getFullDescription().c_str() << std::endl;
+#endif
+        }
+
+        return 0;
+    }
+
+#ifdef __cplusplus
+}
+#endif