changed colors so that red is on top of rect, blue is on bottom
authormatthew <matthew@owens.tech>
Sat, 18 Aug 2018 21:11:25 +0000 (22:11 +0100)
committermatthew <matthew@owens.tech>
Sat, 18 Aug 2018 21:11:25 +0000 (22:11 +0100)
gl/main.c

index ea5e7dd..611307e 100644 (file)
--- 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[] = {