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

Method ClearBuffer

olcPixelGameEngine.h:5730–5735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5728 }
5729
5730 void ClearBuffer(olc::Pixel p, bool bDepth) override
5731 {
5732 glClearColor(float(p.r) / 255.0f, float(p.g) / 255.0f, float(p.b) / 255.0f, float(p.a) / 255.0f);
5733 glClear(GL_COLOR_BUFFER_BIT);
5734 if (bDepth) glClear(GL_DEPTH_BUFFER_BIT);
5735 }
5736
5737 void UpdateViewport(const olc::vi2d& pos, const olc::vi2d& size) override
5738 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected