Skip to content

Commit

Permalink
Merge pull request glium#1485 from passy/book-typos
Browse files Browse the repository at this point in the history
Fix typos in tuto 01/02
  • Loading branch information
tomaka authored Nov 24, 2016
2 parents 11f45b9 + 4dafc23 commit a67136f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/tuto-02-triangle.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ target.clear_color(0.0, 0.0, 1.0, 1.0);
target.finish().unwrap();
```

Starting a draw operation needs several things: a source of vertices (here we use our `vertex_buffer`), a source of indices (we use our `indices` variable), a program, the program's uniforms, and some draw parameters. We will explain what uniforms and draw parameters are in the next tutorials, but for the moment we will just ignore them by passing a `EmptyUniforms` marker and by building the default draw parameters.
Starting a draw operation needs several things: a source of vertices (here we use our `vertex_buffer`), a source of indices (we use our `indices` variable), a program, the program's uniforms, and some draw parameters. We will explain what uniforms and draw parameters are in the next tutorials, but for the moment we will just ignore them by passing an `EmptyUniforms` marker and by building the default draw parameters.

```rust
target.draw(&vertex_buffer, &indices, &program, &glium::uniforms::EmptyUniforms,
Expand Down

0 comments on commit a67136f

Please sign in to comment.