diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /common/qlimits.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'common/qlimits.h')
| -rw-r--r-- | common/qlimits.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/common/qlimits.h b/common/qlimits.h new file mode 100644 index 0000000..205053a --- /dev/null +++ b/common/qlimits.h @@ -0,0 +1,35 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef QLIMITS_H +#define QLIMITS_H + +#if defined( _WIN32 ) +#pragma once +#endif + +// DATA STRUCTURE INFO + +#define MAX_NUM_ARGVS 50 + +// SYSTEM INFO +#define MAX_QPATH 96 // max length of a game pathname +#define MAX_OSPATH 260 // max length of a filesystem pathname + +#define ON_EPSILON 0.1 // point on plane side epsilon + + +// Resource counts; +#define MAX_MODEL_INDEX_BITS 12 // sent as a short +#define MAX_MODELS (1<<MAX_MODEL_INDEX_BITS) + +#define MAX_GENERIC_INDEX_BITS 9 +#define MAX_GENERIC (1<<MAX_GENERIC_INDEX_BITS) +#define MAX_DECAL_INDEX_BITS 9 +#define MAX_BASE_DECALS (1<<MAX_DECAL_INDEX_BITS) + +#endif // QLIMITS_H |