package tsdl
Install
Dune Dependency
Authors
Maintainers
Sources
sha512=f6d429ac5f7d1ea2411fb65f08e454fc5f515879c92e9031afb978dd0c8865739931a83a277fc3bf556e743a710ec8b530717f9e30e353660e1f0219c8293413
Description
Tsdl is an OCaml library providing thin bindings to the cross-platform SDL library.
Tsdl depends on the [SDL 2.0.10][sdl] 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
Tsdl is an OCaml library providing thin bindings to the cross-platform SDL library.
Tsdl depends on the [SDL 2.0.10][sdl] 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 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)
-
ctypes-foreign
>= "0.21.1"
-
ctypes
>= "0.21.1"
- conf-sdl2
-
topkg
build & >= "1.0.3"
-
ocamlbuild
build
-
ocamlfind
build
-
ocaml
>= "4.08.0"
Dev Dependencies
None
Used by (12)
- bimage-sdl
-
bogue
>= "20240928"
-
chamo
>= "4.0"
- llama_interactive
-
oplot
!= "0.50"
-
sdl-liquidsoap
>= "3"
- stk
-
tgls
>= "0.8.4" & < "0.8.6"
-
tsdl-image
>= "0.1.2"
-
tsdl-mixer
>= "0.3.0"
- tsdl-ttf
- vimebac
Conflicts
None