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

@ -1,8 +1,8 @@
#pragma once
#include "blah/common.h"
#include "blah/app.h"
#include "blah/filesystem.h"
#include "blah/common.h"
#include "blah/time.h"
#include "blah/input.h"
@ -13,7 +13,6 @@
#include "blah/graphics/batch.h"
#include "blah/graphics/spritefont.h"
#include "blah/graphics/subtexture.h"
#include "blah/graphics/blend.h"
#include "blah/graphics/material.h"
#include "blah/graphics/mesh.h"

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();