From: matthew Date: Sat, 18 Aug 2018 21:11:25 +0000 (+0100) Subject: changed colors so that red is on top of rect, blue is on bottom X-Git-Url: https://git.owens.tech/assets/wrapped.html/assets/wrapped.html/git?a=commitdiff_plain;h=efa0168a643dabd81183e6478a2f2ee34576f59c;p=csrpg.git changed colors so that red is on top of rect, blue is on bottom --- diff --git a/gl/main.c b/gl/main.c index ea5e7dd..611307e 100644 --- a/gl/main.c +++ b/gl/main.c @@ -15,10 +15,10 @@ static Uint32 itime; static float vertices[] = { // positions // colors - 0.5f, 0.5f, 0.0f, 1.0f, 0.0f, 0.5f, // top right - 0.5f, -0.5f, 0.0f, 0.0f, 1.0f, 0.0f, // bottom right - -0.5f, -0.5f, 0.0f, 0.5f, 0.0f, 0.5f, // bottom left - -0.5f, 0.5f, 0.0f, 0.5f, 0.0f, 1.0f // top left + 0.5f, 0.5f, 0.0f, 1.0f, 0.0f, 0.0f, // top right + 0.5f, -0.5f, 0.0f, 0.0f, 0.0f, 1.0f, // bottom right + -0.5f, -0.5f, 0.0f, 0.0f, 0.0f, 1.0f, // bottom left + -0.5f, 0.5f, 0.0f, 1.0f, 0.0f, 0.0f // top left }; static unsigned int indices[] = {