mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-12-23 17:25:24 +01:00
34 lines
737 B
C
34 lines
737 B
C
// basic typedefs
|
|
#ifndef XASH_TYPES_H
|
|
#define XASH_TYPES_H
|
|
typedef unsigned char byte;
|
|
typedef int sound_t;
|
|
typedef float vec_t;
|
|
typedef vec_t vec2_t[2];
|
|
typedef vec_t vec3_t[3];
|
|
typedef vec_t vec4_t[4];
|
|
typedef vec_t quat_t[4];
|
|
typedef byte rgba_t[4]; // unsigned byte colorpack
|
|
typedef byte rgb_t[3]; // unsigned byte colorpack
|
|
typedef vec_t matrix3x4[3][4];
|
|
typedef vec_t matrix4x4[4][4];
|
|
|
|
#undef true
|
|
#undef false
|
|
|
|
#ifndef __cplusplus
|
|
typedef enum { false, true } qboolean;
|
|
#else
|
|
typedef int qboolean;
|
|
#endif
|
|
|
|
#if _MSC_VER == 1200
|
|
typedef __int64 integer64; //msvc6
|
|
#elif defined (XASH_SDL)
|
|
typedef Uint64 integer64;
|
|
#else
|
|
typedef unsigned long long integer64;
|
|
#endif
|
|
typedef integer64 longtime_t;
|
|
#endif // XASH_TYPES_H
|