From 8c5f06c37f3c267ecd8f867cd49765c366b5f47c Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Thu, 18 Aug 2022 23:11:29 -0400 Subject: many additions --- defines.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'defines.h') diff --git a/defines.h b/defines.h index b919afb..d3ccc16 100644 --- a/defines.h +++ b/defines.h @@ -1,5 +1,3 @@ -#define AmountOf(Array) sizeof((Array)) / sizeof((Array)[1]) - typedef int8_t int8; typedef int16_t int16; typedef int32_t int32; @@ -15,8 +13,7 @@ typedef uint64_t uint64; typedef float real32; typedef double real64; -// is there a compiler variable for 32 vs 64 bit like this? -typedef uint64 ptrsize; +typedef uint64 ptrsize; // is there a compiler variable for 32 vs 64 bit like this? #define NORMALIZED_COL_MIN { .col = V4(0.0f, 0.0f, 0.0f, 0.0f) } #define NORMALIZED_COL_MAX { .col = V4(1.0f, 1.0f, 1.0f, 1.0f) } @@ -36,10 +33,11 @@ typedef uint64 ptrsize; #define MAX_SOURCES 1024 #define MAX_MASKS 8 #define MAX_PROPERTIES_PER_EFFECT 16 -// max keyframes on a single channel is 2048 #define MAX_KEYFRAME_BLOCKS 64 -#define MAX_KEYFRAMES_PER_BLOCK 32 -#define STRING_SIZE 1024 +#define MAX_KEYFRAMES_PER_BLOCK 32 // max keyframes on a single channel is 2048 +#define STRING_SIZE 1024 // TODO(fox): Paths above STRING_SIZE length aren't handled properly. #define MAX_SELECTED_PROPERTIES 16 +#define AmountOf(Array) sizeof((Array)) / sizeof((Array)[1]) + -- cgit v1.2.3