mirror of
https://github.com/NoelFB/blah.git
synced 2025-06-29 19:25:26 +08:00
Refactored Platform into a struct to hold global state better
This commit is contained in:
@ -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"
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user