V2.01 - Bugfix for multifile projects

pull/113/head v2.01
Javidx9 5 years ago committed by GitHub
parent 2664419f60
commit f91de9b4cc
  1. 10
      olcPixelGameEngine.h

@ -2,7 +2,7 @@
olcPixelGameEngine.h olcPixelGameEngine.h
+-------------------------------------------------------------+ +-------------------------------------------------------------+
| OneLoneCoder Pixel Game Engine v2.0 | | OneLoneCoder Pixel Game Engine v2.01 |
| "What do you need? Pixels... Lots of Pixels..." - javidx9 | | "What do you need? Pixels... Lots of Pixels..." - javidx9 |
+-------------------------------------------------------------+ +-------------------------------------------------------------+
@ -129,6 +129,8 @@
Author Author
~~~~~~ ~~~~~~
David Barr, aka javidx9, ©OneLoneCoder 2018, 2019, 2020 David Barr, aka javidx9, ©OneLoneCoder 2018, 2019, 2020
2.01: Made renderer and platform static for multifile projects
*/ */
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////
@ -518,9 +520,9 @@ namespace olc
static olc::PixelGameEngine* ptrPGE; static olc::PixelGameEngine* ptrPGE;
}; };
std::unique_ptr<Renderer> renderer; static std::unique_ptr<Renderer> renderer;
std::unique_ptr<Platform> platform; static std::unique_ptr<Platform> platform;
std::map<size_t, uint8_t> mapKeys; static std::map<size_t, uint8_t> mapKeys;
// O------------------------------------------------------------------------------O // O------------------------------------------------------------------------------O
// | olc::PixelGameEngine - The main BASE class for your application | // | olc::PixelGameEngine - The main BASE class for your application |

Loading…
Cancel
Save