Cleanup, C string -> std::string

This commit is contained in:
wheremyfoodat 2023-07-18 22:23:28 +03:00
parent 19a77c2a85
commit 77b0382d0c
3 changed files with 14 additions and 13 deletions

View file

@ -1,6 +1,7 @@
#pragma once
#include <array>
#include <span>
#include <string>
#include <optional>
#include "PICA/pica_vertex.hpp"
@ -11,6 +12,7 @@ enum class RendererType : s8 {
// Todo: Auto = -1,
Null = 0,
OpenGL = 1,
Vulkan = 2,
};
class GPU;
@ -36,7 +38,7 @@ class Renderer {
static constexpr u32 vertexBufferSize = 0x10000;
static std::optional<RendererType> typeFromString(std::string inString);
static const char* typeToString(RendererType rendererType);
static std::string typeToString(RendererType rendererType);
virtual void reset() = 0;
virtual void display() = 0; // Display the 3DS screen contents to the window