| 360 | } |
| 361 | |
| 362 | void drawingDrawWave(float* points, u32 num_points, float x, float width, float dy_top, float dy_bot) |
| 363 | { |
| 364 | for (u32 i = 0; i < num_points; i ++) |
| 365 | { |
| 366 | float px = x + width * i / (num_points-1); |
| 367 | drawingAddVertex(px, points[i] + dy_top, 0.0f, 0.0f); |
| 368 | drawingAddVertex(px, points[i] + dy_bot, 1.0f, 0.0f); |
| 369 | } |
| 370 | drawingSubmitPrim(GPU_TRIANGLE_STRIP, 2*num_points); |
| 371 | } |
no test coverage detected