From c7582d040faa7e9de0da4c8cecc48e40fdf0c776 Mon Sep 17 00:00:00 2001 From: jaburns Date: Tue, 20 Oct 2020 10:24:07 -0600 Subject: [PATCH] Enum for public facing constant values --- src/libsm64.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/libsm64.h b/src/libsm64.h index 4ae753c..e76d2cc 100644 --- a/src/libsm64.h +++ b/src/libsm64.h @@ -51,9 +51,12 @@ struct SM64MarioGeometryBuffers typedef void (*SM64DebugPrintFunctionPtr)( const char * ); -static const uint32_t SM64_TEXTURE_WIDTH = 64 * 11; -static const uint32_t SM64_TEXTURE_HEIGHT = 64; -static const uint32_t SM64_GEO_MAX_TRIANGLES = 1024; +enum +{ + SM64_TEXTURE_WIDTH = 64 * 11, + SM64_TEXTURE_HEIGHT = 64, + SM64_GEO_MAX_TRIANGLES = 1024, +}; extern void sm64_global_init( uint8_t *rom, uint8_t *outTexture, SM64DebugPrintFunctionPtr debugPrintFunction ); extern void sm64_load_surfaces( uint16_t terrainType, const struct SM64Surface *surfaceArray, uint32_t numSurfaces );