Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00042 #ifndef _orxTYPE_H_
00043 #define _orxTYPE_H_
00044
00045
00046 #include "base/orxDecl.h"
00047
00048
00049
00050
00051 #ifdef __orxWINDOWS__
00052
00053 typedef void * orxHANDLE;
00054
00055 typedef unsigned long orxU32;
00056 typedef unsigned short orxU16;
00057 typedef unsigned char orxU8;
00058
00059 typedef signed long orxS32;
00060 typedef signed short orxS16;
00061 typedef signed char orxS8;
00062
00063 typedef unsigned long orxBOOL;
00064
00065 typedef float orxFLOAT;
00066 typedef double orxDOUBLE;
00067
00068 typedef char orxCHAR;
00069 #define orxSTRING orxCHAR *
00070
00071 typedef orxU32 orxENUM;
00072
00073 #define orx2F(V) ((orxFLOAT)(V))
00074 #define orx2D(V) ((orxDOUBLE)(V))
00075
00076 #define orxENUM_NONE 0xFFFFFFFFL
00077
00078
00079 #ifdef __orxGCC__
00080
00081 typedef unsigned long long orxU64;
00082 typedef signed long long orxS64;
00083
00084 #endif
00085 #ifdef __orxMSVC__
00086
00087 typedef unsigned __int64 orxU64;
00088 typedef signed __int64 orxS64;
00089
00090 #endif
00091
00092 #else
00093
00094
00095 #if defined(__orxLINUX__) || defined(__orxMAC__) || defined(__orxGP2X__) || defined(__orxWII__) || defined(__orxIPHONE__) || defined(__orxANDROID__) || defined(__orxANDROID_NATIVE__)
00096
00097 typedef void * orxHANDLE;
00098
00099 typedef unsigned long long orxU64;
00100 typedef unsigned long orxU32;
00101 typedef unsigned short orxU16;
00102 typedef unsigned char orxU8;
00103
00104 typedef signed long long orxS64;
00105 typedef signed long orxS32;
00106 typedef signed short orxS16;
00107 typedef signed char orxS8;
00108
00109 typedef unsigned long orxBOOL;
00110
00111 typedef float orxFLOAT;
00112 typedef double orxDOUBLE;
00113
00114 typedef char orxCHAR;
00115 #define orxSTRING orxCHAR *
00116
00117 typedef orxU32 orxENUM;
00118
00119 #define orx2F(V) ((orxFLOAT)(V))
00120 #define orx2D(V) ((orxDOUBLE)(V))
00121
00122 #define orxENUM_NONE 0xFFFFFFFFL
00123
00124 #endif
00125
00126 #endif
00127
00128
00129
00130
00131 #define orxFALSE ((orxBOOL)(1 != 1))
00132 #define orxTRUE ((orxBOOL)(1 == 1))
00133
00134
00135
00136 static const orxFLOAT orxFLOAT_0 = orx2F(0.0f);
00137 static const orxFLOAT orxFLOAT_1 = orx2F(1.0f);
00138
00139
00140
00141 static const orxU64 orxU64_UNDEFINED = (orxU64)(-1);
00142 static const orxU32 orxU32_UNDEFINED = (orxU32)(-1);
00143 static const orxU16 orxU16_UNDEFINED = (orxU16)(-1);
00144 static const orxU8 orxU8_UNDEFINED = (orxU8)(-1);
00145 static const orxHANDLE orxHANDLE_UNDEFINED = (orxHANDLE)(-1);
00146
00147
00148
00149 extern orxDLLAPI const orxSTRING orxSTRING_EMPTY;
00150 extern orxDLLAPI const orxSTRING orxSTRING_TRUE;
00151 extern orxDLLAPI const orxSTRING orxSTRING_FALSE;
00152 #define orxCHAR_NULL '\0'
00153 #define orxCHAR_CR '\r'
00154 #define orxCHAR_LF '\n'
00155 #define orxCHAR_ASCII_NUMBER 128
00156
00157 extern orxDLLAPI const orxCHAR orxCHAR_EOL;
00158 extern orxDLLAPI const orxSTRING orxSTRING_EOL;
00159
00160
00161
00162
00163 extern orxDLLAPI const orxCHAR orxCHAR_DIRECTORY_SEPARATOR_WINDOWS;
00164 extern orxDLLAPI const orxCHAR orxCHAR_DIRECTORY_SEPARATOR_LINUX;
00165 extern orxDLLAPI const orxSTRING orxSTRING_DIRECTORY_SEPARATOR_WINDOWS;
00166 extern orxDLLAPI const orxSTRING orxSTRING_DIRECTORY_SEPARATOR_LINUX;
00167
00168 extern orxDLLAPI const orxCHAR orxCHAR_DIRECTORY_SEPARATOR;
00169 extern orxDLLAPI const orxSTRING orxSTRING_DIRECTORY_SEPARATOR;
00170
00171
00172
00173 typedef enum __orxSTATUS_t
00174 {
00175 orxSTATUS_FAILURE = 0,
00176 orxSTATUS_SUCCESS,
00178 orxSTATUS_NUMBER,
00180 orxSTATUS_NONE = orxENUM_NONE
00182 } orxSTATUS;
00183
00184 #endif
00185