1
(* $Id: gluMat.ml,v 1.2 2000/04/12 07:40:25 garrigue Exp $ *)
6
eye:(float * float * float) ->
7
center:(float * float * float) ->
8
up:(float * float * float) -> unit
12
left:float -> right:float -> bottom:float -> top:float -> unit
14
let ortho2d ~x:(left,right) ~y:(bottom,top) =
15
ortho2d ~left ~right ~bottom ~top
17
external perspective :
18
fovy:float -> aspect:float -> znear:float -> zfar:float -> unit
20
let perspective ~fovy ~aspect ~z:(znear,zfar) =
21
perspective ~fovy ~aspect ~znear ~zfar
23
external pick_matrix :
24
x:float -> y:float -> width:float -> height:float -> unit
27
external project : point3 -> point3 = "ml_gluProject"
28
external unproject : point3 -> point3 = "ml_gluUnProject"