2011-06-03から1日間の記事一覧

GlGtkへの道

フル機能のGUIにOpenGLを埋めたいということで、lablGtk上でOpenGLを使いたい。 lablGtkのサイトにThe GLArea widget is also supported in combination with LablGLと書いてあるのでさくっといけるのかと思いきや、Windowsではそんなことはない。 GlGtkが入…

LablGtkを使う

LablGtk http://lablgtk.forge.ocamlcore.org/インストール http://lablgtk.forge.ocamlcore.org/install-win32.txtlablgtk-2.14.0-win32.zipをダウンロード 中身をOCamlディレクトリにコピーする GTK+ GTK+のバイナリ入手 ftp://ftp.gnome.org/pub/gnome/bi…

入出力練習

http://mirror.ocamlcore.org/ocaml-tutorial.org/ja/file_manipulation.html http://mirror.ocamlcore.org/ocaml-tutorial.org/ja/if_statements,_loops_and_recursion.html を参考に練習。cat.ml let read_and_write in_ch out_ch= let rec loop ()= let l…

ocamloptするとやはり速くなる

とりあえず単純レイトレースなど http://www.ffconsultancy.com/ocaml/ray_tracer/index.htmlc++との比較 http://www.ffconsultancy.com/languages/ray_tracer/comparison.html