Triangle!

This commit is contained in:
nothke 2024-06-11 14:37:46 +02:00
parent baca95edea
commit a8dd27f3a4
1 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,9 @@ export fn frame() void {
col.r = @abs(@cos(timef()));
sg.beginPass(.{ .action = pass_action, .swapchain = sokol.glue.swapchain() });
sg.applyPipeline(state.pip);
sg.applyBindings(state.bind);
sg.draw(0, 3, 1);
sg.endPass();
sg.commit();
}