package tsdl
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=c48e7edc59d4ef188fdf0db80ea84171af9ecc0610fe04c7f85643662b947902
md5=846afa7b1f0aad7be9bdaa6b484a90df
Description
Tsdl is an OCaml library providing thin bindings to the cross-platform SDL C library.
Tsdl depends on the SDL 2.0.6 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.6
Tsdl is an OCaml library providing thin bindings to the cross-platform SDL C library.
Tsdl depends on the SDL 2.0.6 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.6 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 (9)
- ctypes-foreign
-
ctypes
>= "0.9.0" & < "0.21.0"
-
result
< "1.5"
- conf-sdl2
-
ocb-stubblr
build
-
topkg
build
-
ocamlbuild
build
-
ocamlfind
build
-
ocaml
>= "4.02.0"
Dev Dependencies
None
Used by (9)
- bimage-sdl
-
bogue
< "20210917"
-
oplot
!= "0.50"
-
sdl-liquidsoap
>= "3"
-
tgls
>= "0.8.4" & < "0.8.6"
-
tsdl-image
>= "0.1.2"
- tsdl-mixer
- tsdl-ttf
- vimebac
Conflicts
None