aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-10-10 14:54:53 +0200
committerdec05eba <dec05eba@protonmail.com>2021-10-10 14:54:53 +0200
commitb81aff95e7924c38dbd1cf639011be1848af6967 (patch)
treec86ecf98fe0f2366473fc2f6cd84b3c7daf85bf9 /tests
parent54b2376adad98d91d32378efc3f241f120ba970f (diff)
Enable alpha blending
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) {