#define OLC_PGE_APPLICATION #include "olcPixelGameEngine.h" #include "PGEX_SMX.h" using namespace olc; class SMX_PGE : public olc::PixelGameEngine { PGEX_SMX smx; public: SMX_PGE() { sAppName = "SMX PGE"; } public: bool OnUserCreate() override { // Called once at the start, so create things here return true; } bool OnUserUpdate(float fElapsedTime) override { smx.GetPanel(RIGHT,0).bHeld; // called once per frame for (int x = 0; x < ScreenWidth(); x++) for (int y = 0; y < ScreenHeight(); y++) Draw(x, y, olc::Pixel(rand() % 255, rand() % 255, rand()% 255)); return true; } }; int main() { SMX_PGE demo; if (demo.Construct(12, 21, 50, 50)) demo.Start(); return 0; }