From 08800c8de855d8f454cc1ace08ef19a8c49084ba Mon Sep 17 00:00:00 2001 From: Gregory Wells Date: Mon, 28 Jul 2025 20:12:11 -0400 Subject: [PATCH] update some more things in utils --- gryphn_utils.h | 1 - utils/gryphn_bool.h | 7 ++++--- utils/gryphn_color_format.h | 7 ------- utils/gryphn_string.h | 4 ++-- 4 files changed, 6 insertions(+), 13 deletions(-) delete mode 100644 utils/gryphn_color_format.h diff --git a/gryphn_utils.h b/gryphn_utils.h index ed43249..01c3ae5 100644 --- a/gryphn_utils.h +++ b/gryphn_utils.h @@ -9,6 +9,5 @@ #include #include #include -#include #include #include diff --git a/utils/gryphn_bool.h b/utils/gryphn_bool.h index 66025e5..5b3f503 100644 --- a/utils/gryphn_bool.h +++ b/utils/gryphn_bool.h @@ -1,5 +1,6 @@ #pragma once +#include -typedef int gnBool; -#define gnFalse 0 -#define gnTrue 1 +typedef uint32_t gnBool; +#define GN_FALSE 0 +#define GN_TRUE 1 diff --git a/utils/gryphn_color_format.h b/utils/gryphn_color_format.h deleted file mode 100644 index 087a30d..0000000 --- a/utils/gryphn_color_format.h +++ /dev/null @@ -1,7 +0,0 @@ -#pragma once - -enum gnColorMode { - GN_RED, GN_RGB8, GN_RGBA8, GN_BGRA8, - GN_DEPTH8_STENCIL24, - GN_DEPTH_STENCIL = GN_DEPTH8_STENCIL24 -}; diff --git a/utils/gryphn_string.h b/utils/gryphn_string.h index 3bd41a9..f1e96be 100644 --- a/utils/gryphn_string.h +++ b/utils/gryphn_string.h @@ -122,10 +122,10 @@ static int gnStringFindString(const gnString string, const gnString value) { char first_char = value.value[0]; for (int i = 0; i < strlen(string.value); i++) if (string.value[i] == first_char) { - gnBool same = gnTrue; + gnBool same = GN_TRUE; for (int c = 1; c < strlen(value.value); c++) if (string.value[i + c] != value.value[c]) { - same = gnFalse; + same = GN_FALSE; break; }