orx  stable
Portable Game Engine
orxSystem.h
Go to the documentation of this file.
1 /* Orx - Portable Game Engine
2  *
3  * Copyright (c) 2008-2017 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 
70 
71  orxSYSTEM_EVENT_NONE = orxENUM_NONE
72 
74 
77 typedef struct __orxSYSTEM_EVENT_PAYLOAD_t
78 {
79  union
80  {
82 
83  /* Touch event */
84  struct
85  {
86  orxDOUBLE dTime;
87  orxU32 u32ID;
88  orxFLOAT fX, fY, fPressure;
89  } stTouch;
90 
91  /* Accelerometer event */
92  struct
93  {
94  orxDOUBLE dTime;
96  } stAccelerometer;
97  };
98 
100 
101 
104 extern orxDLLAPI void orxFASTCALL orxSystem_Setup();
105 
109 extern orxDLLAPI orxSTATUS orxFASTCALL orxSystem_Init();
110 
113 extern orxDLLAPI void orxFASTCALL orxSystem_Exit();
114 
118 extern orxDLLAPI orxDOUBLE orxFASTCALL orxSystem_GetTime();
119 
123 extern orxDLLAPI orxU64 orxFASTCALL orxSystem_GetRealTime();
124 
128 extern orxDLLAPI orxDOUBLE orxFASTCALL orxSystem_GetSystemTime();
129 
133 extern orxDLLAPI void orxFASTCALL orxSystem_Delay(orxFLOAT _fSeconds);
134 
139 extern orxDLLAPI orxVERSION *orxFASTCALL orxSystem_GetVersion(orxVERSION *_pstVersion);
140 
144 extern orxDLLAPI const orxSTRING orxFASTCALL orxSystem_GetVersionString();
145 
149 extern orxDLLAPI const orxSTRING orxFASTCALL orxSystem_GetVersionFullString();
150 
154 extern orxDLLAPI orxU32 orxFASTCALL orxSystem_GetVersionNumeric();
155 
156 
157 #endif /* _orxSYSTEM_H_ */
158 
orxVECTOR vAcceleration
Definition: orxSystem.h:95
orxDLLAPI const orxSTRING orxFASTCALL orxSystem_GetVersionString()
orxDLLAPI orxU64 orxFASTCALL orxSystem_GetRealTime()
orxDLLAPI void orxFASTCALL orxSystem_Setup()
orxDLLAPI void orxFASTCALL orxSystem_Exit()
orxDLLAPI orxU32 orxFASTCALL orxSystem_GetVersionNumeric()
orxDLLAPI orxDOUBLE orxFASTCALL orxSystem_GetTime()
orxSTATUS
Definition: orxType.h:243
orxDLLAPI orxSTATUS orxFASTCALL orxSystem_Init()
#define orxDLLAPI
Definition: orxDecl.h:387
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 orxVERSION *orxFASTCALL orxSystem_GetVersion(orxVERSION *_pstVersion)

Generated for orx by doxygen 1.5.6