aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-24 14:40:06 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-24 14:40:06 -0700
commit3ef18246fcf88b8115cd69d9e9182e841533aac7 (patch)
treebcda1eb56a55d5850497d9399d2b11bba90e013f /tests
parent5798c7144dd32b64b8b6033aaff848fea671c65e (diff)
gix glLoadMatrix and related functions and add testing
Diffstat (limited to 'tests')
-rw-r--r--tests/sdl_ogl_p.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/sdl_ogl_p.c b/tests/sdl_ogl_p.c
index 3978f66c..949aaa44 100644
--- a/tests/sdl_ogl_p.c
+++ b/tests/sdl_ogl_p.c
@@ -58,10 +58,12 @@ int main(int argc, char *argv[])
glViewport( 0, 0, 640, 480 );
glMatrixMode( GL_PROJECTION );
- glLoadIdentity();
+ GLfloat matrixData[] = { 2.0/640, 0, 0, 0,
+ 0, -2.0/480, 0, 0,
+ 0, 0, -1, 0,
+ -1, 1, 0, 1 };
+ glLoadMatrixf(matrixData); // test loadmatrix
- glOrtho( 0, 640, 480, 0, -1, 1 );
-
glMatrixMode( GL_MODELVIEW );
glLoadIdentity();