package tsdl
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
- v1.1.0 2024-09-12 Zagreb
- v1.0.0 2023-03-16 La Forclaz (VS)
- v0.9.9 2022-05-31 Zagreb
- v0.9.8 2020-06-19 Zagreb
- v0.9.7 2019-07-19 Zagreb
- v0.9.6 2017-12-27 La Forclaz (VS)
- v0.9.5 2017-07-24 Zagreb
- v0.9.4 2017-07-08 Zagreb
- v0.9.3 2017-05-03 La Forclaz (VS)
- v0.9.2 2016-12-07 Cambridge (UK)
- v0.9.1 2016-09-27 Zagreb
- v0.9.0 2015-11-30 Cambridge (UK)
- v0.8.2 2015-11-20 Cambridge (UK)
- v0.8.1 2014-05-22 La Forclaz (VS)
- v0.8.0 2014-05-19 La Forclaz (VS)
Thin bindings to SDL for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
tsdl-1.2.0.tbz
sha512=46f43f448b8c41b6ae0a3390a5a421974560a7cb7c75635cc6f21ba9b5a974b9fbeba88c6793cd3d9eced2e04f570079a9931945f047dc5efd00e1d4e3871044
doc/CHANGES.html
v1.2.0 2025-11-10 Zagreb
- Add
Sdl.get_preferred_localesandSdl.Event.locale_changed. Thanks to Vu Ngoc San for the patches (#111, #112) - Fix bug in
Message_boxcolor scheme handling. Thanks to Matthieu Dubuget for the patch (#105) - Add
Sdl.{get,set}_texture_scale_mode.Thanks to Maxence Guesdon for the patch (#114) - Add
Sdl.render_get_windowThanks to Léo Andrès for the patch (#113) - Change
Sdl.rw_closeto use the static function. Thanks to Pierre Boutillier for the patch. - Other Internal ctypes changes. Thanks to Pierre Boutillier for the patches.
v1.1.0 2024-09-12 Zagreb
- Require SDL >= 2.0.18.
- Add binding to
SDL_Vertex,SDL_RenderGeometry[Raw]. Thanks to Frank Standaert for the patches (#101). - Add binding to
SDL_GetTicks64. - Fix segmentation fault on macOS arm64 when using varargs functions through ctypes (#99). Thanks to Jonah Beckford for the report and the help.
- Fix
Sdl.rw_from_const_memto pass the ocaml string rather than a copy. Thanks to Maxence Guesdon for the patch (#102). - Add binding to
SDL_RWFromMem. Thanks to Maxence Guesdon for the patch (#102). - Use package
ctypes-foreigninstead ofctypes.foreign. - Improve documentation linking into SDL documentation.
v1.0.0 2023-03-16 La Forclaz (VS)
- Sdl.gl_get_swap_interval: -1 is a valid return value (adaptive vsync) (#90). Thanks to Edwin Török for the patch.
- Sdl.render_present: release runtime lock (useful for 'presentvsync', #90). Thanks to Edwin Török for the patch.
- Use
CArray.lengthon arrays constructed viaCArray.of_listto avoid a double call toList.length. Thanks to Vu Ngoc San for the patch. - Use implicit linking on MSVC to let ctypes-foreign find SDL2 functions on Windows. Thanks to Jonah Beckford for the patch.
- Add binding to
SDL_SetWindowInputFocus. Thanks to Maxence Guesdon for the patch. - Add (-) operation for flags in
Init,RendererandWindow. Thanks to Maxence Guesdon for the patch. - Add
Hint.mouse_focus_clickthrough. Thanks to Maxence Guesdon for the patch. - Add
rw_from_const_mem. Thanks to Maxence Guesdon for the patch. - Use
.objand other non-.oobject extensions for compilers like MSVC. Thanks to Jonah Beckford for the patch. - Remove binding
Sdl.game_controller_add_mapping_from_file, it's a C macro (#85). Thanks to Jonah Beckford for the report.
v0.9.9 2022-05-31 Zagreb
- Add support for the
windowIDfield ofSDL_DropEvent. Thanks to Maxence Guesdon for the patch. - Tweak
Sdl.Event.drop_fileto return an option an no longer raises in case of null pointer. - Correctly type
Sdl.Event.controller_{axis_axis,button_button}. Thanks to Romain Bardou for the report (#71). - Fix C compilation error due
String_val(#72). - Add missing cases to
Sdl.Event.enum(#76). - Add support for
SDL_F{Point,Rect}Thanks to Florent Monnier for the patches.
v0.9.8 2020-06-19 Zagreb
- Fix bug in
Sdl.{queue_audio,dequeue_audio}, sizes were passed in terms of array length instead of bytes. Thanks to Enguerrand Decorne for the report and the patch. - Release runtime lock during
Sdl.load_wav_rw. Thanks to Michael Bacarella for the patch. - Add
Message_box.button_no_defaultbutton flag. Thanks to Simon Guilliams for the patch.
v0.9.7 2019-07-19 Zagreb
- Add support for
SDL_{Sensor,Display}Event. Thanks to Florent Monnier for the patches. - Require OCaml 4.03 and handle stdlib deprecations.
- Drop
resultdepency. - Drop
ocb-stubblrdependency
v0.9.6 2017-12-27 La Forclaz (VS)
- Add full support for 2.0.{4,5,6}. Thanks to Florian Angeletti who made all the work.
- Add Sdl.Init.nothing. Thanks to @sanette for the patch.
v0.9.5 2017-07-24 Zagreb
- Support for audio queue API. Thanks to Erik Løvlie for the patch.
v0.9.4 2017-07-08 Zagreb
- Fix linking issues on Linux (#38)
v0.9.3 2017-05-03 La Forclaz (VS)
- Fix segfaulting
Sdl.load_raw_rw. Thanks to @sanette for the report and the patch. - Fix audio callback support. The client could not get a handle on the actual callback closure which would lead to
Ctypes_ffi_stubs.CallToExpiredClosure.exceptions. The callback wrapping is now done via theSdl.audio_callbackfunction. The client must keep a reference on the returned value until no longer needed. As a side effect this changes the signature ofSdl.load_raw_rw. Thanks to @sanette for the report. - Fix signature of
Sdl.blit_scaled. Thanks to Léo Andrès for the report and the patch.
v0.9.2 2016-12-07 Cambridge (UK)
- Safe-string support.
- Build depend on
ocb-stubblr. - Add support for 2.0.{4,5} events and make the stubs more robust to additions of events.
v0.9.1 2016-09-27 Zagreb
- Release runtime lock on
Sdl.delay. - Reinstate support for audio callbacks,
ocaml-ctypesis getting smarter (#13). - Really fix signature of
Sdl.blit_surface, thanks to Richard Davison for the report (#25). - Build depend on topkg.
- Relicense from BSD3 to ISC.
v0.9.0 2015-11-30 Cambridge (UK)
- Switch from a polymorphic variant result type to the one exposed by the
resultcompatibility package. This is an incompatible change. Thanks to Florian Angeletti for the patch.
v0.8.2 2015-11-20 Cambridge (UK)
- ctypes >= 0.4.0 support.
- Remove support for audio callback, leads to segfaults. See issue #13 for more information.
- Release the OCaml runtime lock on
Sdl.wait_event[_timeout]. - Fix constant error messages that shouldn't be. Thanks to Vũ Ngọc San for the report.
- Fix signature of
Sdl.blit_surface, thanks to Frederic Bour for the report. - Change toplevel scheme. Require
tsdl.topinstead oftsdlfor toplevel support. - Add
Sdl.Color.set_{r,g,b,a},Point.set_{x,y}andColor.set_{x,y,w,h}. Thanks to Julian Squires for the patch. - Add a few new, undocumented
unsafe_*_of_ptrconversion functions. This allows to develop bindings to other C libraries that manipulate SDL structures. Thanks to Frederic Bour and Julian Squires for the patches.
v0.8.1 2014-05-22 La Forclaz (VS)
- Fix compilation on 32 bits platforms.
- Support for ctypes 0.3. Thanks to Jeremy Yallop for the patch.
v0.8.0 2014-05-19 La Forclaz (VS)
First release. Part of the work was sponsored by OCaml Labs.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
- v1.1.0 2024-09-12 Zagreb
- v1.0.0 2023-03-16 La Forclaz (VS)
- v0.9.9 2022-05-31 Zagreb
- v0.9.8 2020-06-19 Zagreb
- v0.9.7 2019-07-19 Zagreb
- v0.9.6 2017-12-27 La Forclaz (VS)
- v0.9.5 2017-07-24 Zagreb
- v0.9.4 2017-07-08 Zagreb
- v0.9.3 2017-05-03 La Forclaz (VS)
- v0.9.2 2016-12-07 Cambridge (UK)
- v0.9.1 2016-09-27 Zagreb
- v0.9.0 2015-11-30 Cambridge (UK)
- v0.8.2 2015-11-20 Cambridge (UK)
- v0.8.1 2014-05-22 La Forclaz (VS)
- v0.8.0 2014-05-19 La Forclaz (VS)