diff options
| author | Andre Weissflog <floooh@gmail.com> | 2019-01-12 13:52:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-12 13:52:19 +0100 |
| commit | ea9b836153acc5088ea6b10a8308d02179a7f054 (patch) | |
| tree | 53ebff28f999661e7532a1cc8f18a8a1a21e1429 /README.md | |
| parent | 82a45204f54df0429a7d9f8315a6f4647abb428a (diff) | |
sg_apply_pipeline and sg_apply_bindings (#103)
- replace sg_draw_state with sg_bindings
- replace sg_apply_draw_state() with sg_apply_pipeline() and sg_apply_bindings()
- rename sg_apply_uniform_block() to sg_apply_uniforms()
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -119,9 +119,8 @@ int main() { } }); - /* a draw state with all the resource binding */ - sg_draw_state draw_state = { - .pipeline = pip, + /* resource bindings */ + sg_bindings binds = { .vertex_buffers[0] = vbuf }; @@ -133,7 +132,8 @@ int main() { int cur_width, cur_height; glfwGetFramebufferSize(w, &cur_width, &cur_height); sg_begin_default_pass(&pass_action, cur_width, cur_height); - sg_apply_draw_state(&draw_state); + sg_apply_pipeline(pip); + sg_apply_bindings(&binds); sg_draw(0, 3, 1); sg_end_pass(); sg_commit(); |