Skip to content

Commit

Permalink
added another example to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav1dde committed Sep 2, 2012
1 parent 7e0b8ea commit da50a9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.markdown
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -104,4 +104,7 @@ mat4 m4 = mat4(vec4(1.0f, 2.0f, 3.0f, 4.0f), 5.0f, 6.0f, 7.0f, 8.0f, vec4(...) .
void strafe_right(float delta) { // D void strafe_right(float delta) { // D
vec3 vcross = cross(up, forward).normalized; vec3 vcross = cross(up, forward).normalized;
_position = _position - (vcross*delta); _position = _position - (vcross*delta);
``` ```

A more complete example of a real OpenGL program, in combination with [glamour](https://github.com/Dav1dde/glamour):
[https://gist.github.com/3602871](https://gist.github.com/3602871).
5 changes: 4 additions & 1 deletion index.d
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -92,4 +92,7 @@ struct Camera {
// or use a quaternion camera! // or use a quaternion camera!
--- ---
A more complete example of a real OpenGL program, in combination with $(LINK2 https://github.com/Dav1dde/glamour, glamour):
$(LINK2 https://gist.github.com/3602871).

0 comments on commit da50a9d

Please sign in to comment.