| 5728 | } |
| 5729 | |
| 5730 | void ClearBuffer(olc::Pixel p, bool bDepth) override |
| 5731 | { |
| 5732 | glClearColor(float(p.r) / 255.0f, float(p.g) / 255.0f, float(p.b) / 255.0f, float(p.a) / 255.0f); |
| 5733 | glClear(GL_COLOR_BUFFER_BIT); |
| 5734 | if (bDepth) glClear(GL_DEPTH_BUFFER_BIT); |
| 5735 | } |
| 5736 | |
| 5737 | void UpdateViewport(const olc::vi2d& pos, const olc::vi2d& size) override |
| 5738 | { |
nothing calls this directly
no outgoing calls
no test coverage detected