# \[ANN\] sdl3 bindings

**URL:** <https://discuss.ocaml.org/t/ann-sdl3-bindings/18415>\
**Category:** Community\
**Tags:** graphics\
**Created:** [August 4, 2026, 4:24pm UTC](https://discuss.ocaml.org/t/ann-sdl3-bindings/18415 "2026-08-04T16:24:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanette](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/sanette/32/1645_2.png) [@sanette](https://discuss.ocaml.org/u/sanette)\
**Post date:** [August 4, 2026, 4:24pm UTC](https://discuss.ocaml.org/t/ann-sdl3-bindings/18415/1 "2026-08-04T16:24:04Z")

</div>

Hello!

it’s my pleasure to announce a (very) preliminary version of `OCaml-sdl3` (or simply `sdl3` for the package name), which obviously is a set of bindings for the [SDL3](https://www.libsdl.org/) library.

> **[GitHub - sanette/ocaml-sdl3: Ocaml bindings for the SDL3 library](https://github.com/sanette/ocaml-sdl3)**
>
> Ocaml bindings for the SDL3 library

Why announcing a preliminary version? First, because I won’t have much time to work on it in the next couple of months, and second, because I believe you can already have fun with it!

The bindings are generated by a program that uses `clang` to inspect the SDL code. This is a first phase; not all functions are usable yet. I have started to write manual wrappers for a few of them. (See the examples).

_AI disclaimer:_ Although I have to admit chatGPT was my friend for understanding how to use `clang` and `ctypes`, I would like to state here that the whole binding generator (plus all manual additions, of course) was entirely written by (my) hand.
