Changeset 141 for code/branches/main_reto/src/OgreControl.cpp
- Timestamp:
- Nov 1, 2007, 7:48:48 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/main_reto/src/OgreControl.cpp
r123 r141 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 19 * 20 * 21 * Author: 22 * Reto Grieder 23 * Co-authors: 24 * ... 25 * 26 */ 27 1 28 #include "OgreControl.h" 2 29 … … 14 41 assert(mainBundleURL); 15 42 16 CFStringRef cfStringRef = CFURLCopyFileSystemPath( mainBundleURL, kCFURLPOSIXPathStyle); 43 CFStringRef cfStringRef = 44 CFURLCopyFileSystemPath( mainBundleURL, kCFURLPOSIXPathStyle); 17 45 assert(cfStringRef); 18 46 … … 30 58 { 31 59 mRoot = 0; 32 // Provide a nice cross platform solution for locating the configuration files 33 // On windows files are searched for in the current working directory, on OS X however 34 // you must provide the full path, the helper function macBundlePath does this for us. 60 // Provide a nice cross platform solution for locating the configuration 61 // files. On windows files are searched for in the current working 62 // directory, on OS X however you must provide the full path, the helper 63 // function macBundlePath does this for us. 35 64 #if OGRE_PLATFORM == OGRE_PLATFORM_APPLE 36 65 mResourcePath = macBundlePath() + "/Contents/Resources/"; … … 71 100 72 101 73 /// Method which will define the source of resources (other than current folder) 102 // Method which will define the source of resources 103 // (other than current folder) 74 104 void OgreControl::setupResources(void) 75 105 { … … 115 145 116 146 // user clicked OK so initialise 117 // Here we choose to let the system create a default rendering window by passing 'true' 147 // Here we choose to let the system create a default 148 // rendering window by passing 'true' 118 149 mWindow = mRoot->initialise(true); 119 150 mRoot->saveConfig();
Note: See TracChangeset
for help on using the changeset viewer.