aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/main.c b/tests/main.c
index dfea218..c16a68e 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -11,6 +11,13 @@ static void draw(mgl_window *window, void *userdata) {
glColor3f(0., 0., 1.); glVertex3f( .75, .75, 0.);
glColor3f(1., 1., 0.); glVertex3f(-.75, .75, 0.);
glEnd();
+
+ glBegin(GL_QUADS);
+ glColor4f(1., 0., 0., 0.5); glVertex3f(0.1 + -.75, 0.1 + -.75, 0.);
+ glColor4f(1., 0., 0., 0.5); glVertex3f(0.1 + .75, 0.1 + -.75, 0.);
+ glColor4f(1., 0., 0., 0.5); glVertex3f(0.1 + .75, 0.1 + .75, 0.);
+ glColor4f(1., 0., 0., 0.5); glVertex3f(0.1 + -.75, 0.1 + .75, 0.);
+ glEnd();
}
int main(int argc, char **argv) {