Skip to content

Miouyouyou/fonts-and-interfaces-tests

Repository files navigation

About

This is an example showing how to integrate MyyOpenGLHelpers with CMake.

The CMakeLists.txt is handcrafted and should be rather easy to understand and customise to various needs.

Note that the Android build is handled automatically through the apk folder. See the README in the apk folder for informations about how to build and run the the Android version, and the requirements for these operations.

Requirements

Common requirements

To build this example, you will need, at least:

  • CMake version 2.8 or higher
  • OpenGL ES 3.1 headers
  • OpenGL ES 3.1 libraries (e.g. : libGLESv2 on *Nix systems)
  • EGL headers and libraries

Building

X11 variant

To build the X11 variant, you will also need:

  • X11 libraries and headers if you want to compile the X11 variant

Clone this repository somewhere and then do:

cd /tmp
mkdir build_dir
cd build_dir
cmake /path/to/the/cloned/MyyOpenGLHelpers-example-cmake -DMYY_X11=ON
make

DRM variant

To build the DRM variant, you will also need:

  • Generic Buffer Management (GBM) libraries and headers
  • Direct Rendering Manager (DRM) libraries, headers, kernel drivers and OpenGL drivers
cd /tmp
mkdir build_dir
cd build_dir
cmake /path/to/the/cloned/MyyOpenGLHelpers-example-cmake -DMYY_DRM=ON
make

Android variant

To build the Android variant, see the README.md in the Android folder

Running

Run Program when the build finishes.

About

Tests for displaying arbitrary text with OpenGL !

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published