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

Method Clear

olcPixelGameEngine.h:2956–2961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2954 }
2955
2956 void PixelGameEngine::Clear(Pixel p)
2957 {
2958 int pixels = GetDrawTargetWidth() * GetDrawTargetHeight();
2959 Pixel* m = GetDrawTarget()->GetData();
2960 for (int i = 0; i < pixels; i++) m[i] = p;
2961 }
2962
2963 void PixelGameEngine::ClearBuffer(Pixel p, bool bDepth)
2964 {

Callers

nothing calls this directly

Calls 1

GetDataMethod · 0.80

Tested by

no test coverage detected