tsdl

Thin bindings to SDL for OCaml
README

v0.9.8

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

Tsdl depends on the SDL 2.0.9 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

Installation

Tsdl needs the C library SDL 2.0.9 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:

./pkg/pkg.ml build --tests true

and listed with

./pkg/pkg.ml test --list

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.

Install
Published
19 Jun 2020
Maintainers
Sources
tsdl-0.9.8.tbz
md5=369236c7a00e485381722e3d9bae66c6
Dependencies
ctypes
>= "0.14.0"
topkg
build & >= "1.0.1"
ocaml
>= "4.03.0"
Reverse Dependencies
bogue
>= "20210514"
tgls
>= "0.8.4" & < "0.8.6"
tsdl-image
>= "0.1.2"
tsdl-mixer
>= "0.3.0"