aboutsummaryrefslogtreecommitdiff
path: root/include/mgl/gl.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-10-16 07:04:34 +0200
committerdec05eba <dec05eba@protonmail.com>2021-10-16 07:04:34 +0200
commit97f1b1c735775d1e22412bbcf98ef403f9ee2275 (patch)
tree80c2d729a20996d673e7081c4213b09be1076a74 /include/mgl/gl.h
parent08dcbfa7772149bcdcc0ab660a897853a30103a0 (diff)
Add rectangle and sprite, use pixel coordinates, remote opengl dependency from test
Diffstat (limited to 'include/mgl/gl.h')
-rw-r--r--include/mgl/gl.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/mgl/gl.h b/include/mgl/gl.h
index 7d9900c..823e6af 100644
--- a/include/mgl/gl.h
+++ b/include/mgl/gl.h
@@ -47,6 +47,10 @@
#define GL_CLAMP_TO_EDGE 0x812F
#define GL_LINEAR 0x2601
+#define GL_QUADS 0x0007
+
+#define GL_PROJECTION 0x1701
+
typedef struct _XVisualInfo _XVisualInfo;
typedef struct _XDisplay Display;
typedef struct __GLXcontextRec *GLXContext;
@@ -73,6 +77,15 @@ typedef struct {
void (*glBindTexture)(unsigned int target, unsigned int texture);
void (*glTexParameteri)(unsigned int target, unsigned int pname, int param);
void (*glHint)(unsigned int target, unsigned int mode);
+ void (*glBegin)(unsigned int mode);
+ void (*glEnd)(void);
+ void (*glColor3f)(float red, float green, float blue);
+ void (*glVertex3f)(float x, float y, float z);
+ void (*glColor4f)(float red, float green, float blue, float alpha);
+ void (*glTexCoord2f)(float s, float t);
+ void (*glOrtho)(double left, double right, double bottom, double top, double near_val, double far_val);
+ void (*glMatrixMode)(unsigned int mode);
+ void (*glLoadIdentity)(void);
/* Optional*/
void (*glXSwapIntervalEXT)(Display * dpy, GLXDrawable drawable, int interval);