polyadvent

A game engine from scratch in C
git clone git://jb55.com/polyadvent
Log | Files | Refs | README

commit 1e0045674fad7911df5118cf2ef236a794058b0a
parent 253d66c6f3776370b648b6a1f3cd0cf7a288fff8
Author: William Casarin <jb55@jb55.com>
Date:   Tue,  1 May 2018 20:40:20 -0700

should be fine

Diffstat:
Msrc/render.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/render.c b/src/render.c @@ -26,12 +26,12 @@ // v2------v3 static const GLfloat cube_vertices[] = { - 1, 1, 1, -1, 1, 1, -1,-1, 1, 1,-1, 1, // v0-v1-v2-v3 front - 1, 1,-1, 1, 1, 1, 1,-1, 1, 1,-1,-1, // v5-v0-v3-v4 right - -1, 1, 1, 1, 1, 1, 1, 1,-1, -1, 1,-1, // v1-v0-v5-v6 top - -1, 1, 1, -1, 1,-1, -1,-1,-1, -1,-1, 1, // v1-v6-v7-v2 left - 1,-1, 1, -1,-1, 1, -1,-1,-1, 1,-1,-1, // v3-v2-v7-v4 bottom - -1, 1,-1, 1, 1,-1, 1,-1,-1, -1,-1,-1 // v4-v7-v6-v5 back + 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, -0.5,-0.5, 0.5, 0.5,-0.5, 0.5, // v0-v0.5-v2-v3 front + 0.5, 0.5,-0.5, 0.5, 0.5, 0.5, 0.5,-0.5, 0.5, 0.5,-0.5,-0.5, // v5-v0-v3-v4 right + -0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5,-0.5, -0.5, 0.5,-0.5, // v0.5-v0-v5-v6 top + -0.5, 0.5, 0.5, -0.5, 0.5,-0.5, -0.5,-0.5,-0.5, -0.5,-0.5, 0.5, // v0.5-v6-v7-v2 left + 0.5,-0.5, 0.5, -0.5,-0.5, 0.5, -0.5,-0.5,-0.5, 0.5,-0.5,-0.5, // v3-v2-v7-v4 bottom + -0.5, 0.5,-0.5, 0.5, 0.5,-0.5, 0.5,-0.5,-0.5, -0.5,-0.5,-0.5 // v4-v7-v6-v5 back };