From ef815541c7b6d0126c5d639ffdaa555ac41b426d Mon Sep 17 00:00:00 2001 From: Greg Wells Date: Wed, 9 Jul 2025 13:28:18 -0400 Subject: [PATCH] more formats and math stuffs --- utils/gryphn_image_format.h | 2 ++ utils/math/gryphn_math.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/utils/gryphn_image_format.h b/utils/gryphn_image_format.h index b515964..1a1b708 100644 --- a/utils/gryphn_image_format.h +++ b/utils/gryphn_image_format.h @@ -3,12 +3,14 @@ typedef enum gnImageFormat { GN_FORMAT_NONE, GN_FORMAT_BGRA8_SRGB, + GN_FORMAT_BGRA8, GN_FORMAT_RGBA8_SRGB, GN_FORMAT_D24S8_UINT, GN_FORMAT_D32S8_UINT, } gnImageFormat; typedef enum gnColorSpace { + GN_COLOR_SPACE_NONE, GN_COLOR_SPACE_SRGB_NONLINEAR } gnColorSpace; diff --git a/utils/math/gryphn_math.h b/utils/math/gryphn_math.h index 220031d..3ebfc08 100644 --- a/utils/math/gryphn_math.h +++ b/utils/math/gryphn_math.h @@ -1,3 +1,5 @@ #pragma once +#include static const inline float gnRadians(const float degrees) { return degrees * (3.14159265358979323846f / 180.0f); } +static const inline float gnRoot(const float input, const float n) { return pow(input, 1./n); }