take a bulldozer to some code
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
#include "gryphn/gryphn_utils.h"
|
||||
#include "utils/strings/gryphn_string.h"
|
||||
|
||||
enum gnRenderingAPI {
|
||||
typedef enum gnRenderingAPI_t {
|
||||
GN_RENDERINGAPI_NONE, // idk why im putting this
|
||||
GN_RENDERINGAPI_SOFTWARE, // i kinda wanna write a software renderer
|
||||
|
||||
@@ -9,9 +9,9 @@ enum gnRenderingAPI {
|
||||
GN_RENDERINGAPI_VULKAN,
|
||||
GN_RENDERINGAPI_DIRECTX11, GN_RENDERINGAPI_DIRECTX12,
|
||||
GN_RENDERINGAPI_METAL
|
||||
};
|
||||
} gnRenderingAPI;
|
||||
|
||||
inline gnString gnRenderingAPIName(gnRenderingAPI api) {
|
||||
static gnString gnRenderingAPIName(gnRenderingAPI api) {
|
||||
switch (api) {
|
||||
case GN_RENDERINGAPI_NONE: return gnCreateString("GN_RENDERINGAPI_NONE");
|
||||
case GN_RENDERINGAPI_SOFTWARE: return gnCreateString("GN_RENDERINGAPI_SOFTWARE");
|
||||
|
||||
Reference in New Issue
Block a user