summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorClément Sibille <clements@lisible.xyz>2025-03-25 07:31:37 +0100
committerClément Sibille <clements@lisible.xyz>2025-03-25 07:31:37 +0100
commita33f692a0a0d3d4210044bdd93ec6d067a17c8b5 (patch)
tree8fa34185bf3c184b67077044fceaceb957c9d7a1 /src/main.c
parent979ec073d45f4111da8060f4ac081101c85d4a0e (diff)
Render hello triangle
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 7c3cc9f..edf5151 100644
--- a/src/main.c
+++ b/src/main.c
@@ -24,9 +24,12 @@ int main(void) {
goto out_main_loop;
}
}
+
+ vgltf_renderer_triangle_pass(&renderer);
+ renderer.current_frame =
+ (renderer.current_frame + 1) % VGLTF_RENDERER_MAX_FRAME_IN_FLIGHT_COUNT;
}
out_main_loop:
-
vgltf_renderer_deinit(&renderer);
vgltf_platform_deinit(&platform);
return 0;
Go back to lisible.xyz