CoriEngine
Loading...
Searching...
No Matches
GraphicsAPIs.hpp
Go to the documentation of this file.
1#pragma once
2
3namespace Cori {
4 namespace Graphics {
5 enum class GraphicsAPIs {
9 None = 0,
13 OpenGL = 1,
18 };
19
20 [[maybe_unused]] [[nodiscard]] static const char* APIEnumToName(const GraphicsAPIs api) {
21 switch (api) {
23 return "None";
24 break;
26 return "OpenGL";
27 break;
29 return "Vulkan";
30 break;
31 }
32 return "";
33 }
34 }
35}
Almost everything connected to graphics is in this namespace.
Definition Window.hpp:7
@ Vulkan
I want to support vulkan, BUT later-later.
@ None
Invalid enumerator.
@ OpenGL
The only one available for now.
static const char * APIEnumToName(const GraphicsAPIs api)
Global engine namespace.