]> git.lizzy.rs Git - irrlicht.git/blob - source/Irrlicht/CIrrDeviceiOS.h
Reduce IrrCompileConfig usage to files that actually need it
[irrlicht.git] / source / Irrlicht / CIrrDeviceiOS.h
1 // Copyright (C) 2002-2008 Nikolaus Gebhardt\r
2 // Copyright (C) 2008 Redshift Software, Inc.\r
3 // Copyright (C) 2012-2015 Patryk Nadrowski\r
4 // This file is part of the "Irrlicht Engine".\r
5 // For conditions of distribution and use, see copyright notice in irrlicht.h\r
6 \r
7 #ifndef __C_IRR_DEVICE_IOS_H_INCLUDED__\r
8 #define __C_IRR_DEVICE_IOS_H_INCLUDED__\r
9 \r
10 \r
11 #ifdef _IRR_COMPILE_WITH_IOS_DEVICE_\r
12 \r
13 #include "CIrrDeviceStub.h"\r
14 #include "IrrlichtDevice.h"\r
15 \r
16 namespace irr\r
17 {\r
18 \r
19         class CIrrDeviceiOS : public CIrrDeviceStub\r
20         {\r
21         public:\r
22                 CIrrDeviceiOS(const SIrrlichtCreationParameters& params);\r
23                 virtual ~CIrrDeviceiOS();\r
24 \r
25                 bool run() override;\r
26                 void yield() override;\r
27                 void sleep(u32 timeMs, bool pauseTimer) override;\r
28 \r
29                 void setWindowCaption(const wchar_t* text) override;\r
30 \r
31                 bool isWindowActive() const override;\r
32                 bool isWindowFocused() const override;\r
33                 bool isWindowMinimized() const override;\r
34 \r
35                 void closeDevice() override;\r
36 \r
37                 void setResizable(bool resize = false) override;\r
38 \r
39                 void minimizeWindow() override;\r
40                 void maximizeWindow() override;\r
41                 void restoreWindow() override;\r
42 \r
43                 core::position2di getWindowPosition() override;\r
44 \r
45         bool activateAccelerometer(float updateInterval = 0.016666f) override;\r
46         bool deactivateAccelerometer() override;\r
47         bool isAccelerometerActive() override;\r
48         bool isAccelerometerAvailable() override;\r
49         bool activateGyroscope(float updateInterval = 0.016666f) override;\r
50         bool deactivateGyroscope() override;\r
51         bool isGyroscopeActive() override;\r
52         bool isGyroscopeAvailable() override;\r
53         bool activateDeviceMotion(float updateInterval = 0.016666f) override;\r
54         bool deactivateDeviceMotion() override;\r
55         bool isDeviceMotionActive() override;\r
56         bool isDeviceMotionAvailable() override;\r
57 \r
58         E_DEVICE_TYPE getType() const override;\r
59 \r
60         private:\r
61         void createWindow();\r
62         void createViewAndDriver();\r
63         \r
64         void* DataStorage;\r
65                 \r
66                 bool Close;\r
67         };\r
68 \r
69 }\r
70 \r
71 #ifdef _IRR_COMPILE_WITH_IOS_BUILTIN_MAIN_\r
72 extern void irrlicht_main();\r
73 #endif\r
74 \r
75 #endif\r
76 #endif\r