Simple Signed Distance Fields (SDF) font implementation written in C++ with OpenGL.
This projects provides a simple way of rendering text in OpenGL.
RenderText(shader, "ABC abc", gWindowWidth / 2, gWindowHeight / 2, 1.0f, glm::vec3(1.0, 0.0, 0.0));
Where the function signature is:
RenderText(ShaderProgram *shader, std::string text, float x, float y, float scale, glm::vec3 color)
- GLM (OpenGL Mathematics)
- GLFW3
- Freetype
- GLEW (For Linux & Windows Build) ; GLAD (for MacOS builds).
We provide a simple Makefile that provides support for builindg the project in the following environments:
- Windows (MinGW)
- Linux
- MacOS
Should you have any question you can contact us at info@raycasters.com .