| 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 | |
| 204 | struct DrawTriangleTest : ITest |