Tutorial: Rendering text with FreeType and OpenGL ES
This is sample application that uses a native window to create an EGL
on-screen rendering surface. Text is rendered on this surface
by using the FreeType library with OpenGL.
This sample application aims to demonstrate how to integrate the use
of the FreeType library, OpenGL ES 1.X, and
Screen to render text.
Figure 1. Hello World Application
You will learn to:
- create a native context
- initialize and configure EGL for rendering
- create a native window and setting its properties
- calculate the DPI to use based on your display size and resolution
- load a font
- load background texture
- create a main application loop to:
- process events in the native context
- render text using OpenGL ES 1.X
- release resources