diff options
author | Yorhel <git@yorhel.nl> | 2010-06-03 13:56:05 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-06-03 13:56:05 +0200 |
commit | ea0f89c4e118f8af3d958a24c2737428268d1957 (patch) | |
tree | 4ee215674460298421030e52bf66403f698d8544 | |
parent | 5284436d4c5e612e5e66eebf358ced305ad8f5e4 (diff) |
setProjection -> setPerspective
Correct function naming.
-rw-r--r-- | metaballs.ml | 2 | ||||
-rw-r--r-- | util.ml | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/metaballs.ml b/metaballs.ml index 85ca08f..84638d9 100644 --- a/metaballs.ml +++ b/metaballs.ml @@ -62,6 +62,6 @@ let draw t = GlTex.coord2 (1.0, 1.0); GlDraw.vertex3 (1.0, 1.0, 0.0); GlTex.coord2 (0.0, 1.0); GlDraw.vertex3 (0.0, 1.0, 0.0); GlDraw.ends (); - Util.setProjection (); + Util.setPerspective (); Gl.disable `texture_2d; @@ -147,7 +147,7 @@ let setOrtho height width = GlMat.load_identity () -let setProjection () = +let setPerspective () = Gl.enable `depth_test; GlMat.mode `projection; GlMat.pop (); @@ -183,5 +183,5 @@ let drawInfo height width t = (fun c -> Glut.bitmapCharacter Glut.BITMAP_8_BY_13 (Char.code c)) (Printf.sprintf "%6.2f" t); (* reset ortho *) - setProjection () + setPerspective () |