diff options
author | chai <chaifix@163.com> | 2019-06-09 21:12:25 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-06-09 21:12:25 +0800 |
commit | 8ee3f7453bf7b0db5c7358e697e91714d825c87d (patch) | |
tree | 57283565219d1808b47bbd4a883a5a52b6eb7bae /source/modules/asura-core/graphics/gfx_device.cpp | |
parent | d7a972a0f16da0fd7bf4c0b70913920216ff3113 (diff) |
*misc
Diffstat (limited to 'source/modules/asura-core/graphics/gfx_device.cpp')
-rw-r--r-- | source/modules/asura-core/graphics/gfx_device.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source/modules/asura-core/graphics/gfx_device.cpp b/source/modules/asura-core/graphics/gfx_device.cpp index edfa784..c520127 100644 --- a/source/modules/asura-core/graphics/gfx_device.cpp +++ b/source/modules/asura-core/graphics/gfx_device.cpp @@ -32,6 +32,11 @@ namespace AsuraEngine { } + GfxDevice& GfxDevice::Get() + { + return gfx; + } + static bool inited = false; bool GfxDevice::Init(const AEMath::Recti& view) @@ -122,8 +127,6 @@ namespace AsuraEngine #endif } - //------------------------------------------------------------------------------// - void GfxDevice::SetMatrixMode(MatrixMode mode) { state.matrixMode = mode; @@ -191,7 +194,5 @@ namespace AsuraEngine return state.matrix[state.matrixMode].GetTopIndex(); } - //------------------------------------------------------------------------------// - - } -}
\ No newline at end of file + } // Graphics +} // AsuraEngine
\ No newline at end of file |