Tsdl
Thin bindings to SDL for OCaml
Install / Use
/learn @dbuenzli/TsdlREADME
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.nativea minimal SDL example.
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
