]> git.lizzy.rs Git - irrlicht.git/blobdiff - include/IrrlichtDevice.h
Remove all mentions of iOS
[irrlicht.git] / include / IrrlichtDevice.h
index 43107eb5d1cdadcf6cb4ca0e0df0b4475f9640b1..c6a19787859ee69ad3342effaba9348c5f0d751f 100644 (file)
@@ -14,6 +14,7 @@
 #include "ICursorControl.h"\r
 #include "ITimer.h"\r
 #include "IOSOperator.h"\r
+#include "IrrCompileConfig.h"\r
 \r
 namespace irr\r
 {\r
@@ -34,6 +35,7 @@ namespace irr
 \r
        namespace video {\r
                class IContextManager;\r
+               extern "C" IRRLICHT_API bool IRRCALLCONV isDriverSupported(E_DRIVER_TYPE driver);\r
        } // end namespace video\r
 \r
        //! The Irrlicht device. You can create it with createDevice() or createDeviceEx().\r
@@ -156,6 +158,12 @@ namespace irr
                /** \return True if window is minimized. */\r
                virtual bool isWindowMinimized() const = 0;\r
 \r
+               //! Checks if the Irrlicht window is maximized\r
+               //! Only fully works on SDL. Returns false, or the last value set via\r
+               //! maximizeWindow() and restoreWindow(), on other backends.\r
+               /** \return True if window is maximized. */\r
+               virtual bool isWindowMaximized() const = 0;\r
+\r
                //! Checks if the Irrlicht window is running in fullscreen mode\r
                /** \return True if window is fullscreen. */\r
                virtual bool isFullscreen() const = 0;\r
@@ -229,8 +237,8 @@ namespace irr
                as this would consume joystick info that 3rd party libraries might rely on. Call this method to\r
                activate joystick support in Irrlicht and to receive irr::SJoystickEvent events.\r
                \param joystickInfo On return, this will contain an array of each joystick that was found and activated.\r
-               \return true if joysticks are supported on this device and _IRR_COMPILE_WITH_JOYSTICK_EVENTS_\r
-                               is defined, false if joysticks are not supported or support is compiled out.\r
+               \return true if joysticks are supported on this device, false if joysticks are not\r
+                            supported or support is compiled out.\r
                */\r
                virtual bool activateJoysticks(core::array<SJoystickInfo>& joystickInfo) =0;\r
 \r
@@ -304,37 +312,7 @@ namespace irr
                for a configuration requested when creating the device. */\r
                static bool isDriverSupported(video::E_DRIVER_TYPE driver)\r
                {\r
-                       switch (driver)\r
-                       {\r
-                               case video::EDT_NULL:\r
-                                       return true;\r
-                               case video::EDT_OPENGL:\r
-#ifdef _IRR_COMPILE_WITH_OPENGL_\r
-                                       return true;\r
-#else\r
-                                       return false;\r
-#endif\r
-                               case video::EDT_OGLES1:\r
-#ifdef _IRR_COMPILE_WITH_OGLES1_\r
-                                       return true;\r
-#else\r
-                                       return false;\r
-#endif\r
-                               case video::EDT_OGLES2:\r
-#ifdef _IRR_COMPILE_WITH_OGLES2_\r
-                                       return true;\r
-#else\r
-                                       return false;\r
-#endif\r
-                               case video::EDT_WEBGL1:\r
-#ifdef _IRR_COMPILE_WITH_WEBGL1_\r
-                                       return true;\r
-#else\r
-                                       return false;\r
-#endif\r
-                               default:\r
-                                       return false;\r
-                       }\r
+                       return video::isDriverSupported(driver);\r
                }\r
        };\r
 \r