diff options
| author | coco875 <59367621+coco875@users.noreply.github.com> | 2024-09-11 00:20:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-10 16:20:55 -0600 |
| commit | b36b9e318095e0ae5fc720319a55418d9aa5a4c3 (patch) | |
| tree | 1f0b6e5784ba248722a86c464cf32dd9f4a1518e /include | |
| parent | 47e95c0e182ed21486648d88e2ce52aa05d2fe7c (diff) | |
[enhancement] Disable Culling (#58)
* less intrusif possible way to disable culling
* forget cloud and star
* some change and add gFarFrustrum
* reduce range of gFarFrustrum
* minor rename of a CVar
---------
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/macros.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/macros.h b/include/macros.h index ca02b48ad..6f82fb26b 100644 --- a/include/macros.h +++ b/include/macros.h @@ -114,4 +114,16 @@ **/ #define GET_PACKED_END(dl) (((u8*) dl) + sizeof(dl) - sizeof(dl[0]) - 0x07000000) +#ifndef MAX +#define MAX(a, b) ((a) > (b) ? (a) : (b)) +#endif + +#ifndef MIN +#define MIN(a, b) ((a) < (b) ? (a) : (b)) +#endif + +#ifndef CLAMP +#define CLAMP(var, min, max) ((var) < (min) ? min : (var) > (max) ? max : var) +#endif + #endif |
