From: numzero Date: Tue, 14 Mar 2023 15:48:55 +0000 (+0300) Subject: Remove all mentions of iOS X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=25a7074c9af510b6d93d8e84309997e45bad094f;p=irrlicht.git Remove all mentions of iOS --- diff --git a/include/EDeviceTypes.h b/include/EDeviceTypes.h index a0c1ca7..853e825 100644 --- a/include/EDeviceTypes.h +++ b/include/EDeviceTypes.h @@ -24,10 +24,6 @@ namespace irr //! A device native to Mac OSX /** This device uses Apple's Cocoa API and works in Mac OSX 10.2 and above. */ EIDT_OSX, - - //! A device native to the iOS - /** This device should be used with the OpenGL-ES driver. */ - EIDT_IOS, //! A device which uses Simple DirectMedia Layer /** The SDL device works under all platforms supported by SDL but first must be compiled diff --git a/include/SExposedVideoData.h b/include/SExposedVideoData.h index ba47f1e..5e86562 100644 --- a/include/SExposedVideoData.h +++ b/include/SExposedVideoData.h @@ -78,21 +78,6 @@ struct SExposedVideoData //! The EGLNativeWindowType object. void* Window; }; - - struct SOpenGLiOS - { - //! The EAGLContext object. - void* Context; - - //! The subview UIView object where the drawing happens. - void* View; - - //! The UIViewController object. - void* ViewController; - - //! The UIWindow object. - void* Window; - }; struct SOGLESAndroid { @@ -107,7 +92,6 @@ struct SExposedVideoData SOpenGLLinux OpenGLLinux; SOpenGLOSX OpenGLOSX; SOpenGLFB OpenGLFB; - SOpenGLiOS OpenGLiOS; SOGLESAndroid OGLESAndroid; }; }; diff --git a/include/SIrrCreationParameters.h b/include/SIrrCreationParameters.h index bad56e3..5c1f8da 100644 --- a/include/SIrrCreationParameters.h +++ b/include/SIrrCreationParameters.h @@ -235,7 +235,6 @@ namespace irr /** If this is set to a value other than 0, the Irrlicht Engine will be created in an already existing window. For Windows, set this to the HWND of the window you want. - For iOS, assign UIView to this variable. The windowSize and FullScreen options will be ignored when using the WindowId parameter. Default this is set to 0. To make Irrlicht run inside the custom window, you still will diff --git a/source/Irrlicht/CFileSystem.cpp b/source/Irrlicht/CFileSystem.cpp index ba4a332..3ee35d9 100644 --- a/source/Irrlicht/CFileSystem.cpp +++ b/source/Irrlicht/CFileSystem.cpp @@ -24,7 +24,7 @@ #include // for _chdir #include // for _access #include -#elif (defined(_IRR_POSIX_API_) || defined(_IRR_OSX_PLATFORM_) || defined(_IRR_IOS_PLATFORM_) || defined(_IRR_ANDROID_PLATFORM_)) +#elif (defined(_IRR_POSIX_API_) || defined(_IRR_OSX_PLATFORM_) || defined(_IRR_ANDROID_PLATFORM_)) #include #include #include diff --git a/source/Irrlicht/CMakeLists.txt b/source/Irrlicht/CMakeLists.txt index 4d2ec7e..e993ace 100644 --- a/source/Irrlicht/CMakeLists.txt +++ b/source/Irrlicht/CMakeLists.txt @@ -77,23 +77,13 @@ add_definitions( if(CMAKE_SYSTEM_NAME STREQUAL "SunOS") set(SOLARIS TRUE) endif() -if(APPLE AND NOT IOS) - set(OSX TRUE) -endif() # Device if(WIN32) add_definitions(-D_IRR_WINDOWS_ -D_IRR_WINDOWS_API_) set(DEVICE "WINDOWS") -elseif(IOS) - add_definitions(-D_IRR_IOS_PLATFORM_ -D_IRR_COMPILE_WITH_IOS_BUILTIN_MAIN_) - if(USE_SDL2) - message(WARNING "SDL2 backend is not supported on iOS") - set(USE_SDL2 FALSE) - endif() - set(DEVICE "IOS") -elseif(OSX) +elseif(APPLE) add_definitions(-D_IRR_OSX_PLATFORM_) set(DEVICE "OSX") elseif(ANDROID) @@ -150,26 +140,26 @@ endif() # OpenGL -if(IOS OR ANDROID OR EMSCRIPTEN) +if(ANDROID OR EMSCRIPTEN) set(ENABLE_OPENGL FALSE) else() option(ENABLE_OPENGL "Enable OpenGL" TRUE) endif() -if(EMSCRIPTEN OR OSX) +if(EMSCRIPTEN OR APPLE) set(ENABLE_GLES1 FALSE) else() - if(ANDROID OR IOS) + if(ANDROID) set(DEFAULT_GLES1 TRUE) endif() option(ENABLE_GLES1 "Enable OpenGL ES" ${DEFAULT_GLES1}) endif() -if(OSX) +if(APPLE) set(ENABLE_GLES2 FALSE) set(ENABLE_WEBGL1 FALSE) else() - if(ANDROID OR IOS OR EMSCRIPTEN) + if(ANDROID OR EMSCRIPTEN) set(DEFAULT_GLES2 TRUE) endif() if(EMSCRIPTEN) @@ -199,8 +189,6 @@ if(ENABLE_GLES1) add_definitions(-D_IRR_COMPILE_WITH_OGLES1_) if(DEVICE MATCHES "^(WINDOWS|X11|ANDROID)$") add_definitions(-D_IRR_COMPILE_WITH_EGL_MANAGER_ -D_IRR_OGLES1_USE_EXTPOINTER_) - elseif(DEVICE STREQUAL "IOS") - add_definitions(-D_IRR_COMPILE_WITH_EAGL_MANAGER_) endif() endif() @@ -208,8 +196,6 @@ if(ENABLE_GLES2) add_definitions(-D_IRR_COMPILE_WITH_OGLES2_) if(DEVICE MATCHES "^(WINDOWS|X11|ANDROID)$" OR EMSCRIPTEN) add_definitions(-D_IRR_COMPILE_WITH_EGL_MANAGER_ -D_IRR_OGLES2_USE_EXTPOINTER_) - elseif(DEVICE STREQUAL "IOS") - add_definitions(-D_IRR_COMPILE_WITH_EAGL_MANAGER_) endif() endif() diff --git a/source/Irrlicht/os.cpp b/source/Irrlicht/os.cpp index 6b38657..cdd1a26 100644 --- a/source/Irrlicht/os.cpp +++ b/source/Irrlicht/os.cpp @@ -17,7 +17,7 @@ #define bswap_32(X) _byteswap_ulong(X) #define bswap_64(X) _byteswap_uint64(X) #define localtime _localtime_s -#elif defined(_IRR_OSX_PLATFORM_) || defined(_IRR_IOS_PLATFORM_) +#elif defined(_IRR_OSX_PLATFORM_) #include #define bswap_16(X) OSReadSwapInt16(&X,0) #define bswap_32(X) OSReadSwapInt32(&X,0)