Triangle!

This commit is contained in:
nothke 2024-06-11 14:37:46 +02:00
parent baca95edea
commit a8dd27f3a4

View File

@ -58,6 +58,9 @@ export fn frame() void {
col.r = @abs(@cos(timef())); col.r = @abs(@cos(timef()));
sg.beginPass(.{ .action = pass_action, .swapchain = sokol.glue.swapchain() }); 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.endPass();
sg.commit(); sg.commit();
} }