mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-06 11:01:38 +12:00
Migrate RenderType string functions to static Renderer functions
Also fix some IWYU build errors
This commit is contained in:
parent
528ed510c2
commit
0b60cf6901
4 changed files with 13 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue