Triangle!
This commit is contained in:
parent
baca95edea
commit
a8dd27f3a4
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user