Alpha Engine: AEUtil.h Source File

AlphaEngine

AEUtil.h
Go to the documentation of this file.
1 /******************************************************************************/
15 /******************************************************************************/
16 #ifndef AE_UTIL_H
17 #define AE_UTIL_H
18 
19 // ---------------------------------------------------------------------------
20 #ifdef __cplusplus
21 extern "C"
22 {
23 #endif
24 
25 /******************************************************************************/
38 /******************************************************************************/
39 AE_API f64 AEGetTime(f64* pTime);
40 
41 /******************************************************************************/
50 /******************************************************************************/
52 
53 
54 #define isZero(x) ((x < EPSILON) && (x > -EPSILON))
55 
56 #define isEqual(x,y) (((x >= y) ? (x-y) : (y-x)) < EPSILON)
57 
58 
59 
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 /******************************************************************************/
82 /******************************************************************************/
83 s8* ReadFromFile(const s8 *fileName);
84 
85 // ---------------------------------------------------------------------------
86 
87 #endif // AE_UTIL_H
88 
89 
float f32
Definition: AETypes.h:31
s8 * ReadFromFile(const s8 *fileName)
Read file into memory.
f64 AEGetTime(f64 *pTime)
Get the current time in seconds.
char s8
Definition: AETypes.h:23
f32 AERandFloat()
Get a random real number between 0.0f to 1.0f.
#define AE_API
Definition: AEExport.h:53
double f64
Definition: AETypes.h:32
Generated on Sat Jan 4 2014 02:06:22 for Alpha Engine by   doxygen 1.8.5