aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 9cbca59d51e2eeac8a9f537793e0cfe509dfa96c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Minimal Graphics Library
Written in C and uses OpenGL 2.1 to support as many platforms as possible.\
Mgl supports both x11 and wayland and allows you to choose either glx or egl at runtime.
# Dependencies
## Build
`libx11, libxrender, libxrandr`\
`wayland-client, wayland-egl, wayland-scanner`
## Runtime
`libglvnd (libGL.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.\
mgl needs to be initialized first and then a window has to be created before other functions are called.