package tsdl

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

Install

Dune Dependency

Authors

Maintainers

Sources

tsdl-0.9.2.tbz
sha256=8d3d942be3d7d1a842a068132c21c5db0aa24d358a79711b0b56b563d391b827
md5=08c18fed8909499c63e59c14af6c7f3d

Description

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

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

README

Tsdl — Thin bindings to SDL for OCaml

v0.9.2

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

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

Dependencies (9)

  1. ctypes-foreign
  2. ctypes >= "0.9.0" & < "0.21.0"
  3. result < "1.5"
  4. conf-sdl2
  5. ocb-stubblr build
  6. topkg build
  7. ocamlbuild build
  8. ocamlfind build
  9. ocaml >= "4.01.0"

Dev Dependencies

None

Used by (8)

  1. bimage-sdl
  2. bogue < "20210917"
  3. sdl-liquidsoap >= "3"
  4. tgls >= "0.8.4" & < "0.8.6"
  5. tsdl-image >= "0.1.2"
  6. tsdl-mixer
  7. tsdl-ttf
  8. vimebac

Conflicts

None

OCaml

Innovation. Community. Security.