Migrate RenderType string functions to static Renderer functions

Also fix some IWYU build errors
This commit is contained in:
Wunkolo 2023-07-18 10:02:07 -07:00
parent 528ed510c2
commit 0b60cf6901
4 changed files with 13 additions and 13 deletions

View file

@ -1,6 +1,7 @@
#pragma once
#include <array>
#include <span>
#include <optional>
#include "PICA/pica_vertex.hpp"
#include "PICA/regs.hpp"
@ -12,9 +13,6 @@ enum class RendererType : s8 {
OpenGL = 1,
};
std::optional<RendererType> fromString(std::string inString);
const char* toString(RendererType rendererType);
class GPU;
class Renderer {
@ -37,6 +35,8 @@ class Renderer {
virtual ~Renderer();
static constexpr u32 vertexBufferSize = 0x10000;
static std::optional<RendererType> typeFromString(std::string inString);
static const char* typeToString(RendererType rendererType);
virtual void reset() = 0;
virtual void display() = 0; // Display the 3DS screen contents to the window