Fork me on GitHub

OpenGLAda

Thick Ada Binding for OpenGL

The package GL.Text

This package is only available if you include the project opengl-text.gpr as a dependency to your project. This project is provided by the Alire crate openglada_text.

GL.Text is able to produce monochrome textures containing arbitrary text. You can use those textures in shaders to render the text with any color or texture you want. To support non-ASCII characters, GL.Text takes UTF-8-encoded Strings as input.

GL.Text serves as a base for simple String rendering and as example for users who want to do more complex things with text using the FreeTypeAda binding.