()
| 92 | test('immediate mode geometry reuses buffers across frames', async function() { |
| 93 | // Function to draw the same shape using immediate mode |
| 94 | const drawSameShape = () => { |
| 95 | myp5.background(255); |
| 96 | myp5.beginShape(); |
| 97 | myp5.vertex(0, 0); |
| 98 | myp5.vertex(10, 0); |
| 99 | myp5.vertex(5, 10); |
| 100 | myp5.endShape(); |
| 101 | }; |
| 102 | |
| 103 | // Draw the shape for the first frame |
| 104 | drawSameShape(); |
no test coverage detected