module GluTess:sig..end
typewinding_rule =[ `abs_geq_two | `negative | `nonzero | `odd | `positive ]
typevertices =(float * float * float) list
val tesselate : ?winding:winding_rule ->
?boundary_only:bool -> ?tolerance:float -> vertices list -> unitRender directly to current screen.
Each vertices in the input is a contour in the single polygon
represented by vertices list.
type triangles = {
|
singles : |
|
strips : |
|
fans : |
}
val tesselate_and_return : ?winding:winding_rule ->
?tolerance:float -> vertices list -> trianglesReturn 3 lists of triangles instead of rendering directly