From b81aff95e7924c38dbd1cf639011be1848af6967 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 10 Oct 2021 14:54:53 +0200 Subject: Enable alpha blending --- tests/main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') 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) { -- cgit v1.2.3