Image Noise/OCaml/OpenGL: Difference between revisions

no edit summary
(with ocamlnat)
imported>Katsumi
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1:
{{libheader|glMLite}}
{{libheader|GLUT}}
 
Compile this program to native-code with the following command:
ocamlopt -o noise_gl.opt bigarray.cmxa unix.cmxa -I +glMLite GL.cmxa Glut.cmxa noise_gl.ml
Line 7:
ocamlnat unix.cmxs bigarray.cmxs -I +glMLite GL.cmxs Glut.cmxs noise_gl.ml
 
<syntaxhighlight lang ="ocaml">open Glut
open Glut
open GL
Line 41 ⟶ 42:
glutDisplayFunc render;
glutIdleFunc render;
glutMainLoop()</lang>
</syntaxhighlight>
Anonymous user