aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 05b12e759dc9203ecec71adb2eb2707d0573a478 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Minimal Graphics Library
Written in C and uses OpenGL 2.0 to support as many platforms as possible.\
Right now mgl only supports x11.
# Dependencies
## Build
`xlib`
## Runtime
`libglvnd (libGL.so)`
## TODO
Handle window close (window destroyed event, disconnected from server and socket becomes invalid (check select return?)).\
Bind texture and cache the bound texture to reduce calls to opengl.
Use gl triangle instead of quad.
Fix crash on exit.
Support using multiple textures in shaders by using glActiveTexture for each one and set the uniform sampler2D value for each as as the index.