orx  1.10
Portable Game Engine
orxSystem.h
Go to the documentation of this file.
1 /* Orx - Portable Game Engine
2  *
3  * Copyright (c) 2008-2019 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 
73 
74  orxSYSTEM_EVENT_NONE = orxENUM_NONE
75 
77 
80 typedef struct __orxSYSTEM_EVENT_PAYLOAD_t
81 {
82  union
83  {
84  orxU32 u32FrameCount;
85 
86  /* Touch event */
87  struct
88  {
89  orxDOUBLE dTime;
90  orxU32 u32ID;
91  orxFLOAT fX, fY, fPressure;
92  } stTouch;
93 
94  /* Accelerometer event */
95  struct
96  {
97  orxDOUBLE dTime;
99  } stAccelerometer;
100 
101  /* Drop event */
102  struct
103  {
104  const orxSTRING *azValueList;
105  orxU32 u32Number;
106 
107  } stDrop;
108 
109  /* Clipboard event */
110  struct
111  {
112  const orxSTRING zValue;
113 
114  } stClipboard;
115  };
116 
118 
119 
122 extern orxDLLAPI void orxFASTCALL orxSystem_Setup();
123 
127 extern orxDLLAPI orxSTATUS orxFASTCALL orxSystem_Init();
128 
131 extern orxDLLAPI void orxFASTCALL orxSystem_Exit();
132 
136 extern orxDLLAPI orxDOUBLE orxFASTCALL orxSystem_GetTime();
137 
141 extern orxDLLAPI orxU64 orxFASTCALL orxSystem_GetRealTime();
142 
146 extern orxDLLAPI orxDOUBLE orxFASTCALL orxSystem_GetSystemTime();
147 
151 extern orxDLLAPI void orxFASTCALL orxSystem_Delay(orxFLOAT _fSeconds);
152 
157 extern orxDLLAPI orxVERSION *orxFASTCALL orxSystem_GetVersion(orxVERSION *_pstVersion);
158 
162 extern orxDLLAPI const orxSTRING orxFASTCALL orxSystem_GetVersionString();
163 
167 extern orxDLLAPI const orxSTRING orxFASTCALL orxSystem_GetVersionFullString();
168 
172 extern orxDLLAPI orxU32 orxFASTCALL orxSystem_GetVersionNumeric();
173 
177 extern orxDLLAPI const orxSTRING orxFASTCALL orxSystem_GetClipboard();
178 
183 extern orxDLLAPI orxSTATUS orxFASTCALL orxSystem_SetClipboard(const orxSTRING _zValue);
184 
185 
186 #endif /* _orxSYSTEM_H_ */
187 
orxVECTOR vAcceleration
Definition: orxSystem.h:98
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:104
orxDLLAPI orxDOUBLE orxFASTCALL orxSystem_GetTime()
orxSTATUS
Definition: orxType.h:246
const orxSTRING zValue
Definition: orxSystem.h:112
orxDLLAPI orxSTATUS orxFASTCALL orxSystem_Init()
#define orxDLLAPI
Definition: orxDecl.h:381
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