• R/O
  • SSH

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

コミットメタ情報

リビジョン60987208b2fe2bca877112762b61d43485feb553 (tree)
日時2023-11-15 06:07:39
作者sebastian_bugiu
コミッターsebastian_bugiu

ログメッセージ

Hacks to get it to build on xrOS.

変更サマリ

差分

diff -r b96e2deed6e4 -r 60987208b2fe OgreMain/include/Math/Array/OgreMathlib.h
--- a/OgreMain/include/Math/Array/OgreMathlib.h Mon Jul 10 21:51:33 2023 +0300
+++ b/OgreMain/include/Math/Array/OgreMathlib.h Tue Nov 14 23:07:39 2023 +0200
@@ -40,7 +40,7 @@
4040
4141 namespace Ogre
4242 {
43- typedef MathlibSSE2 Mathlib;
43+// typedef MathlibSSE2 Mathlib;
4444 }
4545 #elif OGRE_CPU == OGRE_CPU_ARM && OGRE_USE_SIMD == 1
4646 #if OGRE_DOUBLE_PRECISION == 1
diff -r b96e2deed6e4 -r 60987208b2fe OgreMain/include/OgrePlatform.h
--- a/OgreMain/include/OgrePlatform.h Mon Jul 10 21:51:33 2023 +0300
+++ b/OgreMain/include/OgrePlatform.h Tue Nov 14 23:07:39 2023 +0200
@@ -143,11 +143,11 @@
143143 #elif defined( __APPLE_CC__)
144144 // Device Simulator
145145 // 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
147147 # 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
151151 #elif defined(__ANDROID__)
152152 # define OGRE_PLATFORM OGRE_PLATFORM_ANDROID
153153 #elif defined( __native_client__ )
diff -r b96e2deed6e4 -r 60987208b2fe Samples/2.0/Common/src/System/iOS/GameViewController.mm
--- a/Samples/2.0/Common/src/System/iOS/GameViewController.mm Mon Jul 10 21:51:33 2023 +0300
+++ b/Samples/2.0/Common/src/System/iOS/GameViewController.mm Tue Nov 14 23:07:39 2023 +0200
@@ -206,7 +206,7 @@
206206 _timer = nullptr;
207207 }
208208 // create a game loop timer using a display link
209- _timer = [[UIScreen mainScreen] displayLinkWithTarget:self
209+ _timer = [/*[UIScreen mainScreen]*/CADisplayLink displayLinkWithTarget:self
210210 selector:@selector(mainLoop)];
211211 _timer.frameInterval = 1; //VSync to 60 FPS
212212 [_timer addToRunLoop:[NSRunLoop mainRunLoop] forMode:NSDefaultRunLoopMode];
diff -r b96e2deed6e4 -r 60987208b2fe Samples/2.0/Common/src/System/iOS/iOSUtils.mm
--- a/Samples/2.0/Common/src/System/iOS/iOSUtils.mm Mon Jul 10 21:51:33 2023 +0300
+++ b/Samples/2.0/Common/src/System/iOS/iOSUtils.mm Tue Nov 14 23:07:39 2023 +0200
@@ -34,9 +34,15 @@
3434 {
3535 Ogre::Vector2 iOSUtils::getScreenResolutionInPoints(void)
3636 {
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
4147 }
4248 }