package tsdl

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

tsdl-1.2.0.tbz
sha512=46f43f448b8c41b6ae0a3390a5a421974560a7cb7c75635cc6f21ba9b5a974b9fbeba88c6793cd3d9eced2e04f570079a9931945f047dc5efd00e1d4e3871044

Description

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

Tsdl depends on the C library SDL 2.0.18 (or later), ocaml-ctypes. Tsdl is distributed under the ISC license.

Home page: http://erratique.ch/software/tsdl

README

Tsdl — Thin bindings to SDL for OCaml

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

Tsdl depends on the C library SDL 2.0.18 (or later), ocaml-ctypes. Tsdl is distributed under the ISC license.

Home page: http://erratique.ch/software/tsdl

Installation

Tsdl needs the C library SDL 2.0.18 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 can be consulted online or via odig doc tsdl.

Questions are welcome but better asked on the OCaml forum than on the issue tracker.

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_tsdl.native, tests the bindings, the executable should exit with 0.
  • sdlevents.native, traces SDL events.
  • min.native a minimal SDL example.

Dependencies (7)

  1. ctypes-foreign >= "0.21.1"
  2. ctypes >= "0.21.1"
  3. conf-sdl2
  4. topkg build & >= "1.1.1"
  5. ocamlbuild build
  6. ocamlfind build
  7. ocaml >= "4.08.0"

Dev Dependencies

None

Conflicts

None