package tsdl

  1. Overview
  2. Docs
Thin bindings to SDL for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

tsdl-0.9.4.tbz
sha256=e2a95a5e84c9e040e1e511936068a302105068f9bf64f9be477d792ef8194e8d
md5=ef0ad013a3e49a4c7ad7c9a4dd54dd13

README.md.html

Tsdl — Thin bindings to SDL for OCaml

v0.9.4

Tsdl is an OCaml library providing thin bindings to the cross-platform SDL C library.

Tsdl depends on the SDL 2.0.5 C library (or later), ocaml-ctypes and the result compatibility package. Tsdl is distributed under the ISC license.

Home page: http://erratique.ch/software/tsdl
Contact: Daniel Bünzli <daniel.buenzl i@erratique.ch>

Installation

Tsdl needs the C library SDL 2.0.5 or later installed on your system. Tsdl can be installed with opam:

opam install tsdl

If you don't use opam consult the opam file for build instructions and a complete specification of the dependencies.

Documentation

The documentation and API reference is automatically generated by from the source interfaces. It can be consulted online or via odig doc tsdl.

Sample programs

Sample programs are located in the test directory of the distribution. They can be built with:

ocamlbuild -use-ocamlfind tests.otarget

The resulting binaries are in _build/test :

  • test.native, tests the bindings, the executable should exit with 0.

  • sdlevents.native, traces SDL events.

  • min.native a minimal SDL example.

OCaml

Innovation. Community. Security.