MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / OnUserUpdate

Method OnUserUpdate

olcExampleProgram.cpp:19–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 }
18
19 bool OnUserUpdate(float fElapsedTime) override
20 {
21 // called once per frame
22 for (int x = 0; x < ScreenWidth(); x++)
23 for (int y = 0; y < ScreenHeight(); y++)
24 Draw(x, y, olc::Pixel(rand() % 255, rand() % 255, rand()% 255));
25 return true;
26 }
27};
28
29

Callers

nothing calls this directly

Calls 1

PixelClass · 0.85

Tested by

no test coverage detected