cleanup some warnings
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "utils/gryphn_string.h"
|
|
||||||
|
|
||||||
typedef enum gnRenderingAPI_t {
|
typedef enum gnRenderingAPI_t {
|
||||||
GN_RENDERINGAPI_NONE, // idk why im putting this
|
GN_RENDERINGAPI_NONE, // idk why im putting this
|
||||||
@@ -10,16 +9,3 @@ typedef enum gnRenderingAPI_t {
|
|||||||
GN_RENDERINGAPI_DIRECTX11, GN_RENDERINGAPI_DIRECTX12,
|
GN_RENDERINGAPI_DIRECTX11, GN_RENDERINGAPI_DIRECTX12,
|
||||||
GN_RENDERINGAPI_METAL
|
GN_RENDERINGAPI_METAL
|
||||||
} gnRenderingAPI;
|
} gnRenderingAPI;
|
||||||
|
|
||||||
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");
|
|
||||||
case GN_RENDERINGAPI_OPENGL: return gnCreateString("GN_RENDERINGAPI_OPENGL");
|
|
||||||
case GN_RENDERINGAPI_VULKAN: return gnCreateString("GN_RENDERINGAPI_VULKAN");
|
|
||||||
case GN_RENDERINGAPI_DIRECTX11: return gnCreateString("GN_RENDERINGAPI_DIRECTX11");
|
|
||||||
case GN_RENDERINGAPI_DIRECTX12: return gnCreateString("GN_RENDERINGAPI_DIRECTX12");
|
|
||||||
case GN_RENDERINGAPI_METAL: return gnCreateString("GN_RENDERINGAPI_METAL");
|
|
||||||
}
|
|
||||||
return gnCreateString("GN_INVALID_API");
|
|
||||||
}
|
|
||||||
|
@@ -29,7 +29,6 @@ typedef struct gnInstanceFunctions {
|
|||||||
gnReturnCode (*_gnCreateOutputDevice)(gnInstanceHandle instance, gnOutputDeviceHandle device, gnOutputDeviceInfo deviceInfo);
|
gnReturnCode (*_gnCreateOutputDevice)(gnInstanceHandle instance, gnOutputDeviceHandle device, gnOutputDeviceInfo deviceInfo);
|
||||||
void (*_gnDestroyOutputDevice)(gnInstanceHandle handle, gnOutputDeviceHandle device);
|
void (*_gnDestroyOutputDevice)(gnInstanceHandle handle, gnOutputDeviceHandle device);
|
||||||
|
|
||||||
|
|
||||||
#ifdef GN_PLATFORM_LINUX
|
#ifdef GN_PLATFORM_LINUX
|
||||||
#ifdef GN_WINDOW_X11
|
#ifdef GN_WINDOW_X11
|
||||||
gnReturnCode (*_gnCreateX11WindowSurface)(gnWindowSurfaceHandle windowSurface, gnInstanceHandle instance, gnX11WindowSurfaceInfo createInfo);
|
gnReturnCode (*_gnCreateX11WindowSurface)(gnWindowSurfaceHandle windowSurface, gnInstanceHandle instance, gnX11WindowSurfaceInfo createInfo);
|
||||||
|
Reference in New Issue
Block a user