mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-21 20:21:19 +00:00
Move idlib typedefs to platform.h
This commit is contained in:
parent
e522e719dd
commit
487406d861
2 changed files with 23 additions and 23 deletions
23
idlib/Lib.h
23
idlib/Lib.h
|
@ -72,33 +72,10 @@ public:
|
||||||
===============================================================================
|
===============================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef unsigned char byte; // 8 bits
|
|
||||||
typedef unsigned short word; // 16 bits
|
|
||||||
typedef unsigned int dword; // 32 bits
|
|
||||||
typedef unsigned int uint;
|
|
||||||
typedef unsigned long ulong;
|
|
||||||
|
|
||||||
typedef int qhandle_t;
|
|
||||||
|
|
||||||
class idFile;
|
class idFile;
|
||||||
class idVec3;
|
class idVec3;
|
||||||
class idVec4;
|
class idVec4;
|
||||||
|
|
||||||
#ifndef NULL
|
|
||||||
#define NULL ((void *)0)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef BIT
|
|
||||||
#define BIT( num ) ( 1 << ( num ) )
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define MAX_STRING_CHARS 1024 // max length of a string
|
|
||||||
|
|
||||||
// maximum world size
|
|
||||||
#define MAX_WORLD_COORD ( 128 * 1024 )
|
|
||||||
#define MIN_WORLD_COORD ( -128 * 1024 )
|
|
||||||
#define MAX_WORLD_SIZE ( MAX_WORLD_COORD - MIN_WORLD_COORD )
|
|
||||||
|
|
||||||
// basic colors
|
// basic colors
|
||||||
extern idVec4 colorBlack;
|
extern idVec4 colorBlack;
|
||||||
extern idVec4 colorWhite;
|
extern idVec4 colorWhite;
|
||||||
|
|
|
@ -216,4 +216,27 @@ If you have questions concerning this license or the applicable additional terms
|
||||||
|
|
||||||
#define ID_TIME_T time_t
|
#define ID_TIME_T time_t
|
||||||
|
|
||||||
|
typedef unsigned char byte; // 8 bits
|
||||||
|
typedef unsigned short word; // 16 bits
|
||||||
|
typedef unsigned int dword; // 32 bits
|
||||||
|
typedef unsigned int uint;
|
||||||
|
typedef unsigned long ulong;
|
||||||
|
|
||||||
|
typedef int qhandle_t;
|
||||||
|
|
||||||
|
#ifndef NULL
|
||||||
|
#define NULL ((void *)0)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef BIT
|
||||||
|
#define BIT( num ) ( 1 << ( num ) )
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define MAX_STRING_CHARS 1024 // max length of a string
|
||||||
|
|
||||||
|
// maximum world size
|
||||||
|
#define MAX_WORLD_COORD ( 128 * 1024 )
|
||||||
|
#define MIN_WORLD_COORD ( -128 * 1024 )
|
||||||
|
#define MAX_WORLD_SIZE ( MAX_WORLD_COORD - MIN_WORLD_COORD )
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue