No description
  • C++ 96.8%
  • Meson 3.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-15 02:03:14 +02:00
depends Add support for numpad divide, multiply, subtract and add 2026-09-15 02:03:14 +02:00
include/mglpp Add missing string include 2026-06-29 21:15:33 +02:00
src Fix build with libc++23 2026-09-05 01:44:20 +02:00
tests Finish wayland support 2026-04-24 05:25:27 +02:00
.gitignore Change text renderer from stb_freetype to pangoft2, add mgl_text_edit for a simple text editor 2026-04-18 00:34:22 +02:00
.gitmodules Update submodule urls 2022-02-28 00:42:13 +01:00
LICENSE Initial commit with an example 2021-10-18 01:54:59 +02:00
meson.build test -> executable 2026-06-02 16:44:27 +02:00
meson_options.txt Make tests optional 2026-06-02 16:23:56 +02:00
project.conf Change text renderer from stb_freetype to pangoft2, add mgl_text_edit for a simple text editor 2026-04-18 00:34:22 +02:00
README.md Mention that libxkbcommon is a dependency with wayland 2026-05-12 23:55:50 +02:00
TODO wip: wayland 2025-04-20 01:12:30 +02:00

Minimal Graphics Library (C++)

C++ wrapper for mgl

Dependencies

Build

  • libx11, libxrender, libxrandr
  • wayland-client, wayland-egl, wayland-scanner, libxkbcommon (Only needed if mgl is built with the -Dwayland=true meson option, which is set by default)
  • pango (pangoft2)

Runtime

libglvnd (libGL.so, libGLX.so, libEGL.so)

Notes

Every window get function is cached from the last event poll, no calls to x11/wayland is made.
Only one window can be created and used at once.
mglpp needs to be initialized first and then a window has to be created before other functions are called.

TODO

Wayland support is not finished yet. Use MGL_WINDOW_SYSTEM_X11 for now in mgl::Init.