Permalink
Browse files

first arg of glu-perspective is fovy, so use the same name in fn frus…

…tum-view

Also move the doc string behind the fn name.
  • Loading branch information...
1 parent fe7c58b commit 2af8079c8b885673dbf458f7f7c9984eda41770d @mva mva committed with Jul 3, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/penumbra/opengl.clj
View
@@ -146,11 +146,12 @@
(gl-ortho left right bottom top near far)
(gl-matrix-mode :modelview))
-(defn frustum-view [fovx aspect near far]
+(defn frustum-view
"Create a standard perspective view."
+ [fovy aspect near far]
(gl-matrix-mode :projection)
(gl-load-identity-matrix)
- (glu-perspective (double fovx) (double aspect) (double near) (double far))
+ (glu-perspective (double fovy) (double aspect) (double near) (double far))
(gl-matrix-mode :modelview))
;;Geometry

0 comments on commit 2af8079

Please sign in to comment.