给你一段使用应用向导的说明吧~~~enjoy it!
Introduction
This is a brief, but detailed guide to use the OGRE SDK and the OGRE SDK AppWizard.
Remember: you don't need anything but Visual C++, the OGRE SDK and the AppWizard.
And you don't need to configure any project options. The wizard takes care of that.
Get It
Get the OGRE SDK for your compiler .
Get the OGRE SDK AppWizard for your compiler .
Make sure that the AppWizard matches the version of the OGRE SDK!
Install It
OGRE SDK
Very important!
Do not install this into a directory name with spaces in it, like "My Documents" or the like. You are only asking for trouble.
Choose a sensible no-spaces-in-it name, like C:\OgreSDK.
Install the OGRE SDK.
After installation, we are checking that everything is alright. We want the OGRE_HOME environment present,
and we want it to point to where the OgreSDK is installed.
It happens by default, but we are checking anyway.
Right-Click the "My Computer" icon, go to the Advanced tab and click on the Environment Varibles button.
You should see an OGRE_HOME environment variable pointing to your newly installed OGRE SDK.
OGRE AppWizard
OK. Now unzip the OGRE AppWizard to somewhere safe. Jump into the folder, and find the installation script:
Double-click on it. Hopefully it is succesful:
Forget about this directory! You don't need to see it again, nor use it. Just leave it where it is, alright? :-)
You will create new projects from Visual Studio, not from here.
Use it
Now, it is time to fire up Visual Studio.
Create a New Project
Create a new project:
Locate the OGRE SDK Application Icon, and don't forget to give your project a name and a place to stay!
Again, you are advised to choose a no-spaces-in-it-path. :-)
[edit]
Follow the Wizard
Click OK and watch the first page of the OGRE SDK Application Wizard:
Go to the next page - make sure that the post-build copy is checked:
Click on "Finish" - and watch your new project:
Build your Project
Build your project:
Watch the output window for success:
Notice that the exe is copied to the OgreSDK/bin/debug directory.
Run it
Go to your OgreSDK/bin/debug directory and find your creation: