Tsdl is an OCaml library providing thin bindings to the cross-platform
SDL C library.
Home page: http://erratique.ch/software/tsdl
Tsdl needs the C library SDL 2.0.9 or later installed on your
system. Tsdl can be installed with
opam install tsdl
If you don't use
opam consult the
opam file for
build instructions and a complete specification of the dependencies.
The documentation and API reference is automatically generated by
from the source interfaces. It can be consulted online
odig doc tsdl.
Sample programs are located in the
test directory of the
distribution. They can be built with:
./pkg/pkg.ml build --tests true
and listed with
./pkg/pkg.ml test --list
The resulting binaries are in
test.native, tests the bindings, the executable should exit
sdlevents.native, traces SDL events.
min.nativea minimal SDL example.
build & >= "1.0.3"