package tsdl-ttf

All checked builds pass
  1. Overview
  2. Docs
SDL2_Ttf bindings to go with Tsdl

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.7.tar.gz
md5=ba79c3dbee29fa876cf211b55994de27
sha512=36da05d5e177f8ca8c90e9c2515c35deecbff61c1ca7fb1b80110b5c97d4668073a7375f48d441417e956a7c1a9db69592715751bd94f6187483578529c12b2b

Description

Tsdl_ttf provides bindings to SDL2_ttf intended to be used with Tsdl.

Tags

tsdl SDL graphics bindings ttf

Added to opam-repository:

README

tsdl-ttf — SDL2_ttf bindings for OCaml with Tsdl

Tsdl_ttf provides bindings to SDL2_ttf intended to be used with Tsdl.

It has as siblings tsdl-image and tsdl-mixer.

Note that these bindings are at an early stage and have only been used minimally. The interface may change. Comments and bug reports are welcome through the github page.

Installation

Via opam:

opam install tsdl-ttf

or, to get the latest version:

opam pin https://github.com/sanette/tsdl-ttf

Tested on Linux, MacOS, Windows (mingw64)

These bindings use dynamic loading of the SDL2_ttf library at runtime.

They should work for any version of SDL2_ttf >= 2.0.14.

On Windows, before installing, you may need to select this tsdl version:

opam pin https://github.com/sanette/tsdl

Example

See test/test.ml

 cd test
dune exec ./show_string.exe
Hello

Documentation

Documentation is here, it can be generated with dune build @doc, (or ./make_doc.sh) but the binding follows the SDL2_ttf interface closely, so it may be sufficient to consult its documentation.

Starting from version 0.3, the library is usable in a toplevel (with #require "tsdl-ttf").

WARNING V0.3 Breaking change

Starting from 0.3, the library name is the same as the opam package name tsdl-ttf. (The library name used to be tsdl_ttf, which was confusing).

CI

(This CI uses the official tsdl. For Windows with the modified tsdl, see the Github actions.)

https://ci.ocamllabs.io/github/sanette/tsdl-ttf

Dependencies (6)

  1. ctypes-foreign
  2. ctypes >= "0.4.0"
  3. conf-sdl2-ttf
  4. tsdl >= "0.9.1"
  5. ocaml >= "4.03"
  6. dune >= "2.7"

Dev Dependencies (1)

  1. odoc with-doc

Optional Dependencies

None

Conflicts

None

Build status

Results of building tsdl-ttf with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
0.7 (this version) good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure