1 (* $Id: glClear.ml,v 1.5 2000-04-12 07:40:23 garrigue Exp $ *)
5 external accum
: float -> float -> float -> float -> unit
7 let accum ?
(alpha
=1.) (r
,g
,b
: rgb
) =
10 type buffer
= [`color
|`depth
|`
accum|`stencil
]
11 external clear
: buffer list
-> unit = "ml_glClear"
14 red
:float -> green
:float -> blue
:float -> alpha
:float -> unit
16 let color ?
(alpha
=1.) (red
, green
, blue
: rgb
) =
17 color ~red ~green ~blue ~alpha
18 external depth
: clampf
-> unit = "ml_glClearDepth"
19 external index
: float -> unit = "ml_glClearIndex"
20 external stencil
: int -> unit = "ml_glClearStencil"