MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / ClearScreen

Method ClearScreen

GTE/Applications/Window2.cpp:98–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void Window2::ClearScreen(uint32_t color)
99{
100 uint32_t const numTexels = mScreenTexture->GetNumElements();
101 uint32_t* texels = mScreenTexture->Get<uint32_t>();
102 for (uint32_t i = 0; i < numTexels; ++i)
103 {
104 *texels++ = color;
105 }
106}
107
108void Window2::SetPixel(int32_t x, int32_t y, uint32_t color)
109{

Callers

nothing calls this directly

Calls 1

GetNumElementsMethod · 0.45

Tested by

no test coverage detected