Changeset 16
- Timestamp:
- Oct 10, 2007, 10:05:58 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tutorial/Tutorial/ExampleApplication.h
r6 r16 26 26 #include "ExampleFrameListener.h" 27 27 28 #if 0 28 29 #if OGRE_PLATFORM == OGRE_PLATFORM_APPLE 29 30 #include <CoreFoundation/CoreFoundation.h> … … 52 53 } 53 54 #endif 55 #endif 54 56 55 57 using namespace Ogre; … … 69 71 // On windows files are searched for in the current working directory, on OS X however 70 72 // you must provide the full path, the helper function macBundlePath does this for us. 71 #if OGRE_PLATFORM == OGRE_PLATFORM_APPLE72 mResourcePath = macBundlePath() + "/Contents/Resources/";73 #else74 73 mResourcePath = ""; 75 #endif76 74 } 77 75 /// Standard destructor … … 221 219 typeName = i->first; 222 220 archName = i->second; 223 #if OGRE_PLATFORM == OGRE_PLATFORM_APPLE224 // OS X does not set the working directory relative to the app,225 // In order to make things portable on OS X we need to provide226 // the loading with it's own bundle path location227 ResourceGroupManager::getSingleton().addResourceLocation(228 String(macBundlePath() + "/" + archName), typeName, secName);229 #else230 221 ResourceGroupManager::getSingleton().addResourceLocation( 231 222 archName, typeName, secName); 232 #endif233 223 } 234 224 }
Note: See TracChangeset
for help on using the changeset viewer.