diff options
Diffstat (limited to 'examples/graph.c')
-rw-r--r-- | examples/graph.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/graph.c b/examples/graph.c index 75f83fa..7d36ca8 100644 --- a/examples/graph.c +++ b/examples/graph.c @@ -60,7 +60,7 @@ void draw_node(i64 node_index) { if (n.hover) color = (vec4_f32) { 0.f, .5f, 0.f, 1.f }; // green color - fill_ellipse( + fill_ellipse_cached( color, (Box) { n.x - n.radius, @@ -86,7 +86,7 @@ void draw_edge(i64 edge_index) { if (e.hover) color = (vec4_f32) { 0.f, .5f, 0.f, 1.f }; // green color - fill_line( + fill_line_cached( color, (vec2[2]) { { n0.x, n0.y }, @@ -504,7 +504,7 @@ void update_and_render_frame(void) { // Render - fill_rectangle_quick((vec4_f32) { .7f, .8f, .9f, 1.f }, (Box) { 0, 0, g_platform.real_width, g_platform.real_height }); + fill_rectangle((vec4_f32) { .7f, .8f, .9f, 1.f }, (Box) { 0, 0, g_platform.real_width, g_platform.real_height }); if (adding_edge) { f64 x0 = world.nodes[adding_src].x; @@ -517,7 +517,7 @@ void update_and_render_frame(void) { y1 = world.nodes[adding_dst].y; } - fill_line((vec4_f32) { .5f, 0.f, .5f, 1.f }, (vec2[2]) { { x0, y0 }, { x1, y1 } }, 30); + fill_line_cached((vec4_f32) { .5f, 0.f, .5f, 1.f }, (vec2[2]) { { x0, y0 }, { x1, y1 } }, 30); } draw_graph(); |