MCPcopy Create free account
hub / github.com/devkitPro/3ds-hbmenu / drawingDrawWave

Function drawingDrawWave

source/drawing.c:362–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362void 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}

Callers 1

backgroundDrawTopFunction · 0.85

Calls 2

drawingAddVertexFunction · 0.85
drawingSubmitPrimFunction · 0.85

Tested by

no test coverage detected