aboutsummaryrefslogtreecommitdiff
path: root/tests/cubegeom.c
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-24 20:55:23 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-24 20:55:23 -0700
commitc7bed7ab29a5e351166bf570825edc2a94c43aef (patch)
tree63cb8c502b2fb46d824bae40467513e827934720 /tests/cubegeom.c
parent2622a2c7c59d0f83f63afe7d3bbbd07ef86f0958 (diff)
cubegeom matrix stuff
Diffstat (limited to 'tests/cubegeom.c')
-rw-r--r--tests/cubegeom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cubegeom.c b/tests/cubegeom.c
index 739d2dd6..d5d09435 100644
--- a/tests/cubegeom.c
+++ b/tests/cubegeom.c
@@ -87,15 +87,15 @@ int main(int argc, char *argv[])
glLoadIdentity();
// original: glFrustum(-0.6435469817188064, 0.6435469817188064 ,-0.48266022190470925, 0.48266022190470925 ,0.5400000214576721, 2048);
glFrustum(-0.6435469817188064, 0.1435469817188064 ,-0.48266022190470925, 0.88266022190470925 ,0.5400000214576721, 2048);
+ //GLfloat pm[] = { 1.372136116027832, 0, 0, 0, 0, 0.7910231351852417, 0, 0, -0.6352481842041016, 0.29297152161598206, -1.0005275011062622, -1, 0, 0, -1.080284833908081, 0 };
+ //glLoadMatrixf(pm);
+
glMatrixMode(GL_MODELVIEW);
GLfloat matrixData[] = { -1, 0, 0, 0,
0, 0,-1, 0,
0, 1, 0, 0,
0, 0, 0, 1 };
glLoadMatrixf(matrixData);
- glRotated(0, 0, 1, 0);
- glRotated(0,-1, 0, 0);
- glRotated(0, 0, 0,-1);
//glTranslated(-512,-512,-527); // XXX this should be uncommented, but if it is then nothing is shown
glEnable(GL_CULL_FACE);