package tsdl

All checked builds pass
  1. Overview
  2. Docs
Thin bindings to SDL for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

tsdl-1.3.0.tbz
sha512=4b23ec507343669c0c2c37f36e677c2e033e03ab6e3faad31254334b14fdcc57a9977634cce29535d42a853abca7277f40f85b692e442ee0603e835d7558ddea

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

Optional Dependencies

None

Conflicts

None

Build status

Results of building tsdl with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
1.3.0 (this version) good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure