]> git.lizzy.rs Git - irrlicht.git/blobdiff - include/IrrlichtDevice.h
Restore isDriverSupported, but in a cpp file
[irrlicht.git] / include / IrrlichtDevice.h
index 88415118b0d780fac6208afb3f39fe7c3dc7ebf1..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
@@ -270,14 +278,6 @@ namespace irr
         //! Is device motion available.\r
         virtual bool isDeviceMotionAvailable() = 0;\r
 \r
-               //! Set the current Gamma Value for the Display\r
-               virtual bool setGammaRamp(f32 red, f32 green, f32 blue,\r
-                                       f32 relativebrightness, f32 relativecontrast) =0;\r
-\r
-               //! Get the current Gamma Value for the Display\r
-               virtual bool getGammaRamp(f32 &red, f32 &green, f32 &blue,\r
-                                       f32 &brightness, f32 &contrast) =0;\r
-\r
                //! Set the maximal elapsed time between 2 clicks to generate doubleclicks for the mouse. It also affects tripleclick behavior.\r
                /** When set to 0 no double- and tripleclicks will be generated.\r
                \param timeMs maximal time in milliseconds for two consecutive clicks to be recognized as double click\r
@@ -312,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