MCPcopy Create free account
hub / github.com/defold/defold / Execute

Method Execute

engine/graphics/src/test/test_app_graphics.cpp:184–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182 }
183
184 void Execute(EngineCtx* engine) override
185 {
186 static uint8_t color_r = 0;
187 static uint8_t color_g = 80;
188 static uint8_t color_b = 140;
189 static uint8_t color_a = 255;
190
191 color_r += 1;
192 color_g += 2;
193 color_b += 3;
194
195 dmGraphics::Clear(engine->m_GraphicsContext, dmGraphics::BUFFER_TYPE_COLOR0_BIT,
196 (float)color_r,
197 (float)color_g,
198 (float)color_b,
199 (float)color_a,
200 1.0f, 0);
201 }
202};
203
204struct DrawTriangleTest : ITest

Callers

nothing calls this directly

Calls 1

ClearFunction · 0.85

Tested by

no test coverage detected