Store everything in a VBO, making things faster.
[ipdf/code.git] / src / real.h
1 #ifndef _REAL_H
2 #define _REAL_H
3
4 #include "common.h"
5
6 #define REAL_SINGLE 0
7 #define REAL_DOUBLE 1
8
9 #ifndef REAL
10         #error "REAL was not defined!"
11 #endif
12
13 namespace IPDF
14 {       
15         extern const char * g_real_name[];
16
17 #if REAL == REAL_SINGLE
18         typedef float Real;
19         inline float Float(Real r) {return r;}
20 #elif REAL == REAL_DOUBLE
21         typedef double Real;
22         inline double Float(Real r) {return r;}
23 #else
24         #error "Type of Real unspecified."
25 #endif //REAL
26
27 }
28
29 #endif //_REAL_H

UCC git Repository :: git.ucc.asn.au