package tsdl

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

Install

Dune Dependency

Authors

Maintainers

Sources

tsdl-1.0.0.tbz
sha512=70ba93a07d8add11d29cf94ce173c022a52a7d57af7b9dad3abdae7fde6314d4690d3aacc8f75e598b6af2e692568399638813664db0331e0a898bdc14bfe670

Description

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

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

README

Tsdl — Thin bindings to SDL for OCaml

v1.0.0

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

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

Dependencies (7)

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

Dev Dependencies

None

Used by (12)

  1. bimage-sdl
  2. bogue >= "20240928"
  3. chamo = "4.0"
  4. llama_interactive
  5. oplot != "0.50"
  6. sdl-liquidsoap >= "3"
  7. stk < "0.2.0"
  8. tgls >= "0.8.4" & < "0.8.6"
  9. tsdl-image >= "0.1.2"
  10. tsdl-mixer >= "0.3.0"
  11. tsdl-ttf
  12. vimebac

Conflicts

None

OCaml

Innovation. Community. Security.