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