12 #ifndef G3D_BINARYFORMAT_H
13 #define G3D_BINARYFORMAT_H
43 UINT8_BINFMT,
INT8_BINFMT,
UINT16_BINFMT,
INT16_BINFMT,
UINT32_BINFMT,
INT32_BINFMT,
UINT64_BINFMT,
INT64_BINFMT,
UINT128_BINFMT,
INT128_BINFMT,
67 #define binaryFormatOf(T) (G3D::_internal::_BinaryFormat<T>::x())
93 #define DECLARE_BINARYFORMATOF(CType, EnumType) \
95 namespace _internal { \
96 template<> class _BinaryFormat<CType> { \
98 static BinaryFormat x() { \
BinaryFormat
Definition: BinaryFormat.h:39
Definition: BinaryFormat.h:43
Definition: BinaryFormat.h:43
int8_t int8
Definition: Define.h:148
Definition: BinaryFormat.h:43
Definition: BinaryFormat.h:43
int64_t int64
Definition: Define.h:145
Definition: BinaryFormat.h:48
Definition: BinaryFormat.h:47
Definition: BinaryFormat.h:47
double float64
Definition: g3dmath.h:173
Definition: BinaryFormat.h:44
Definition: BinaryFormat.h:48
Definition: BinaryFormat.h:50
Definition: BinaryFormat.h:50
Definition: BinaryFormat.h:43
Definition: BinaryFormat.h:46
Definition: BinaryFormat.h:44
Definition: BinaryFormat.h:44
Definition: BinaryFormat.h:48
float float32
Definition: g3dmath.h:172
Definition: BinaryFormat.h:43
int32_t int32
Definition: Define.h:146
Definition: BinaryFormat.h:50
uint32_t uint32
Definition: Define.h:150
uint64_t uint64
Definition: Define.h:149
uint16_t uint16
Definition: Define.h:151
Definition: BinaryFormat.h:40
Definition: BinaryFormat.h:50
Definition: BinaryFormat.h:46
Definition: BinaryFormat.h:49
Definition: BinaryFormat.h:45
Definition: BinaryFormat.h:56
Definition: BinaryFormat.h:43
Definition: BinaryFormat.h:54
uint8_t uint8
Definition: Define.h:152
Definition: BinaryFormat.h:49
Definition: BinaryFormat.h:43
int16_t int16
Definition: Define.h:147
int32 byteSize(BinaryFormat f)
Definition: BinaryFormat.cpp:13
Definition: BinaryFormat.h:45
Definition: BinaryFormat.h:50
Definition: BinaryFormat.h:49
Definition: BinaryFormat.h:52
Definition: Vector2int16.h:22
Definition: BinaryFormat.h:43
Definition: BinaryFormat.h:43
Definition: BinaryFormat.h:42