2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 03:47:43 +00:00

Add graphics platform name to window title

This commit is contained in:
2016-08-04 20:21:19 -07:00
parent 1fce6a7535
commit 02a79b4c80
6 changed files with 15 additions and 3 deletions

View File

@@ -231,6 +231,7 @@ public:
static void TickRenderTimings();
static boo::IGraphicsDataFactory::Platform g_BooPlatform;
static const boo::SystemChar* g_BooPlatformName;
static boo::IGraphicsDataFactory* g_BooFactory;
static boo::IGraphicsCommandQueue* g_BooMainCommandQueue;
static boo::ITextureR* g_SpareTexture;
@@ -240,11 +241,17 @@ public:
boo::ITextureR* spareTex)
{
g_BooPlatform = factory->platform();
g_BooPlatformName = factory->platformName();
g_BooFactory = factory;
g_BooMainCommandQueue = cc;
g_SpareTexture = spareTex;
}
const boo::SystemChar* PlatformName()
{
return g_BooPlatformName;
}
static boo::GraphicsDataToken CommitResources(const boo::FactoryCommitFunc& commitFunc)
{
return g_BooFactory->commitTransaction(commitFunc);