Catmull–Clark subdivision surface/OCaml: Difference between revisions

Content added Content deleted
(full ocaml code for Catmull–Clark subdivision surfaces)
 
m (removed -g parameter for compilation)
Line 37: Line 37:


You can compile everything together with:
You can compile everything together with:
ocamlopt -c -g dynar.ml
ocamlopt -c dynar.ml
ocamlopt -c -g subsurf.ml
ocamlopt -c subsurf.ml
ocamlopt -g -I +glMLite GL.cmxa Glu.cmxa Glut.cmxa dynar.cmx subsurf.cmx main.ml -o catmull.opt
ocamlopt -I +glMLite GL.cmxa Glu.cmxa Glut.cmxa dynar.cmx subsurf.cmx main.ml -o catmull.opt


<lang ocaml>open GL
<lang ocaml>open GL