Refactored Platform into a struct to hold global state better

This commit is contained in:
Noel Berry
2022-02-11 20:19:14 -08:00
parent ddb7d1b372
commit 1caa31032b
20 changed files with 971 additions and 791 deletions

View File

@ -19,7 +19,7 @@ namespace Blah
};
// Renderer Information
struct RendererFeatures
struct RendererInfo
{
// The type of Renderer being used
RendererType type = RendererType::None;
@ -142,8 +142,8 @@ namespace Blah
// Otherwise this function does nothing.
void fullscreen(bool enabled);
// Retrieves the Renderer Features
const RendererFeatures& renderer();
// Retrieves the Renderer Information
const RendererInfo& renderer();
// Gets the BackBuffer
const TargetRef& backbuffer();