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

Function ClearBuffer

olcPixelGameEngine.h:6320–6325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6318 }
6319
6320 void ClearBuffer(olc::Pixel p, bool bDepth) override
6321 {
6322 glClearColor(float(p.r) / 255.0f, float(p.g) / 255.0f, float(p.b) / 255.0f, float(p.a) / 255.0f);
6323 glClear(GL_COLOR_BUFFER_BIT);
6324 if (bDepth) glClear(GL_DEPTH_BUFFER_BIT);
6325 }
6326
6327 void UpdateViewport(const olc::vi2d& pos, const olc::vi2d& size) override
6328 {

Callers 1

OnUserUpdateMethod · 0.85

Calls

no outgoing calls

Tested by 1

OnUserUpdateMethod · 0.68