orx  1.14
Portable Game Engine
orxSystem.h
Go to the documentation of this file.
1 /* Orx - Portable Game Engine
2  *
3  * Copyright (c) 2008-2022 Orx-Project
4  *
5  * This software is provided 'as-is', without any express or implied
6  * warranty. In no event will the authors be held liable for any damages
7  * arising from the use of this software.
8  *
9  * Permission is granted to anyone to use this software for any purpose,
10  * including commercial applications, and to alter it and redistribute it
11  * freely, subject to the following restrictions:
12  *
13  * 1. The origin of this software must not be misrepresented; you must not
14  * claim that you wrote the original software. If you use this software
15  * in a product, an acknowledgment in the product documentation would be
16  * appreciated but is not required.
17  *
18  * 2. Altered source versions must be plainly marked as such, and must not be
19  * misrepresented as being the original software.
20  *
21  * 3. This notice may not be removed or altered from any source
22  * distribution.
23  */
24 
43 #ifndef _orxSYSTEM_H_
44 #define _orxSYSTEM_H_
45 
46 #include "orxInclude.h"
47 #include "math/orxVector.h"
48 
51 typedef enum __orxSYSTEM_EVENT_t
52 {
56 
59 
62 
68 
71 
74 
76 
77  orxSYSTEM_EVENT_NONE = orxENUM_NONE
78 
80 
83 typedef struct __orxSYSTEM_EVENT_PAYLOAD_t
84 {
85  union
86  {
87  orxU32 u32FrameCount;
88 
89  /* Touch event */
90  struct
91  {
92  orxDOUBLE dTime;
93  orxU32 u32ID;
94  orxFLOAT fX, fY, fPressure;
95  } stTouch;
96 
97  /* Accelerometer event */
98  struct
99  {
100  orxDOUBLE dTime;
102  } stAccelerometer;
103 
104  /* Drop event */
105  struct
106  {
107  const orxSTRING *azValueList;
108  orxU32 u32Number;
109 
110  } stDrop;
111 
112  /* Clipboard event */
113  struct
114  {
115  const orxSTRING zValue;
116 
117  } stClipboard;
118  };
119 
121 
122 
125 extern orxDLLAPI void orxFASTCALL orxSystem_Setup();
126 
130 extern orxDLLAPI orxSTATUS orxFASTCALL orxSystem_Init();
131 
134 extern orxDLLAPI void orxFASTCALL orxSystem_Exit();
135 
139 extern orxDLLAPI orxDOUBLE orxFASTCALL orxSystem_GetTime();
140 
144 extern orxDLLAPI orxU64 orxFASTCALL orxSystem_GetRealTime();
145 
149 extern orxDLLAPI orxDOUBLE orxFASTCALL orxSystem_GetSystemTime();
150 
154 extern orxDLLAPI void orxFASTCALL orxSystem_Delay(orxFLOAT _fSeconds);
155 
160 extern orxDLLAPI orxVERSION *orxFASTCALL orxSystem_GetVersion(orxVERSION *_pstVersion);
161 
165 extern orxDLLAPI const orxSTRING orxFASTCALL orxSystem_GetVersionString();
166 
170 extern orxDLLAPI const orxSTRING orxFASTCALL orxSystem_GetVersionFullString();
171 
175 extern orxDLLAPI orxU32 orxFASTCALL orxSystem_GetVersionNumeric();
176 
180 extern orxDLLAPI const orxSTRING orxFASTCALL orxSystem_GetClipboard();
181 
186 extern orxDLLAPI orxSTATUS orxFASTCALL orxSystem_SetClipboard(const orxSTRING _zValue);
187 
188 
189 #endif /* _orxSYSTEM_H_ */
190 
orxDLLAPI const orxSTRING orxFASTCALL orxSystem_GetVersionString()
orxDLLAPI orxU64 orxFASTCALL orxSystem_GetRealTime()
orxDLLAPI void orxFASTCALL orxSystem_Setup()
orxDLLAPI void orxFASTCALL orxSystem_Exit()
orxDLLAPI const orxSTRING orxFASTCALL orxSystem_GetClipboard()
orxDLLAPI orxU32 orxFASTCALL orxSystem_GetVersionNumeric()
const orxSTRING * azValueList
Definition: orxSystem.h:107
orxDLLAPI orxDOUBLE orxFASTCALL orxSystem_GetTime()
orxSTATUS
Definition: orxType.h:256
const orxSTRING zValue
Definition: orxSystem.h:115
orxDLLAPI orxSTATUS orxFASTCALL orxSystem_Init()
#define orxDLLAPI
Definition: orxDecl.h:370
orxDLLAPI void orxFASTCALL orxSystem_Delay(orxFLOAT _fSeconds)
orxDLLAPI orxDOUBLE orxFASTCALL orxSystem_GetSystemTime()
orxSYSTEM_EVENT
Definition: orxSystem.h:51
orxDLLAPI const orxSTRING orxFASTCALL orxSystem_GetVersionFullString()
orxDLLAPI orxSTATUS orxFASTCALL orxSystem_SetClipboard(const orxSTRING _zValue)
orxDLLAPI orxVERSION *orxFASTCALL orxSystem_GetVersion(orxVERSION *_pstVersion)

Generated for orx by doxygen 1.8.11