リビジョン | 60987208b2fe2bca877112762b61d43485feb553 (tree) |
---|---|
日時 | 2023-11-15 06:07:39 |
作者 | sebastian_bugiu |
コミッター | sebastian_bugiu |
Hacks to get it to build on xrOS.
@@ -40,7 +40,7 @@ | ||
40 | 40 | |
41 | 41 | namespace Ogre |
42 | 42 | { |
43 | - typedef MathlibSSE2 Mathlib; | |
43 | +// typedef MathlibSSE2 Mathlib; | |
44 | 44 | } |
45 | 45 | #elif OGRE_CPU == OGRE_CPU_ARM && OGRE_USE_SIMD == 1 |
46 | 46 | #if OGRE_DOUBLE_PRECISION == 1 |
@@ -143,11 +143,11 @@ | ||
143 | 143 | #elif defined( __APPLE_CC__) |
144 | 144 | // Device Simulator |
145 | 145 | // Both requiring OS version 6.0 or greater |
146 | -# if __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 60000 || __IPHONE_OS_VERSION_MIN_REQUIRED >= 60000 | |
146 | +//# if __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 60000 || __IPHONE_OS_VERSION_MIN_REQUIRED >= 60000 | |
147 | 147 | # define OGRE_PLATFORM OGRE_PLATFORM_APPLE_IOS |
148 | -# else | |
149 | -# define OGRE_PLATFORM OGRE_PLATFORM_APPLE | |
150 | -# endif | |
148 | +//# else | |
149 | +//# define OGRE_PLATFORM OGRE_PLATFORM_APPLE | |
150 | +//# endif | |
151 | 151 | #elif defined(__ANDROID__) |
152 | 152 | # define OGRE_PLATFORM OGRE_PLATFORM_ANDROID |
153 | 153 | #elif defined( __native_client__ ) |
@@ -206,7 +206,7 @@ | ||
206 | 206 | _timer = nullptr; |
207 | 207 | } |
208 | 208 | // create a game loop timer using a display link |
209 | - _timer = [[UIScreen mainScreen] displayLinkWithTarget:self | |
209 | + _timer = [/*[UIScreen mainScreen]*/CADisplayLink displayLinkWithTarget:self | |
210 | 210 | selector:@selector(mainLoop)]; |
211 | 211 | _timer.frameInterval = 1; //VSync to 60 FPS |
212 | 212 | [_timer addToRunLoop:[NSRunLoop mainRunLoop] forMode:NSDefaultRunLoopMode]; |
@@ -34,9 +34,15 @@ | ||
34 | 34 | { |
35 | 35 | Ogre::Vector2 iOSUtils::getScreenResolutionInPoints(void) |
36 | 36 | { |
37 | - UIScreen *mainScreen = [UIScreen mainScreen]; | |
38 | - CGRect screenRect = [mainScreen bounds]; | |
39 | - | |
40 | - return Ogre::Vector2( screenRect.size.width, screenRect.size.height ); | |
37 | +#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE_IOS | |
38 | +// UIScreen *mainScreen = [UIScreen mainScreen]; | |
39 | +// CGRect screenRect = [mainScreen bounds]; | |
40 | +// | |
41 | +// return Ogre::Vector2( screenRect.size.width, screenRect.size.height ); | |
42 | + return Ogre::Vector2( 1280, 720 ); | |
43 | +#else | |
44 | + // We probably are on xrOS. | |
45 | + return Ogre::Vector2( 1280, 720 ); | |
46 | +#endif | |
41 | 47 | } |
42 | 48 | } |