summaryrefslogtreecommitdiff
path: root/gl.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-05 12:09:40 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-05 12:09:40 -0500
commit7e3f48153aacf5ef440797eceb748badb729cc6d (patch)
tree1588c83cf751f90c4c92ace9b70ebabde01cb89f /gl.c
parentcefdff9a6a449506ddaeae56a2e038a1a2106846 (diff)
switch to getting all gl procs manually
Diffstat (limited to 'gl.c')
-rw-r--r--gl.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gl.c b/gl.c
index 9873bfa..5ef3360 100644
--- a/gl.c
+++ b/gl.c
@@ -2,6 +2,20 @@
// macro trickery to avoid having to write everything twice
#define gl_for_each_proc(do)\
+ do(DRAWARRAYS, DrawArrays)\
+ do(GENTEXTURES, GenTextures)\
+ do(DELETETEXTURES, DeleteTextures)\
+ do(TEXIMAGE2D, TexImage2D)\
+ do(BINDTEXTURE, BindTexture)\
+ do(TEXPARAMETERI, TexParameteri)\
+ do(GETERROR, GetError)\
+ do(GETINTEGERV, GetIntegerv)\
+ do(ENABLE, Enable)\
+ do(DISABLE, Disable)\
+ do(BLENDFUNC, BlendFunc)\
+ do(VIEWPORT, Viewport)\
+ do(CLEARCOLOR, ClearColor)\
+ do(CLEAR, Clear)\
do(CREATESHADER, CreateShader)\
do(DELETESHADER, DeleteShader)\
do(CREATEPROGRAM, CreateProgram)\