comparison test/testdyngles.c @ 5153:1435f8a6425c

Nobody is currently maintaining the QNX code, so removing it for now.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 01 Feb 2011 21:40:03 -0800
parents f4bc25567731
children
comparison
equal deleted inserted replaced
5152:be02be2ea897 5153:1435f8a6425c
114 int video_w, video_h; 114 int video_w, video_h;
115 115
116 /* you may want to change these according to the platform */ 116 /* you may want to change these according to the platform */
117 video_w = 320; 117 video_w = 320;
118 video_h = 480; 118 video_h = 480;
119 #ifdef __QNXNTO__
120 video_w = 480;
121 video_h = 640;
122 #endif /* __QNXNTO__ */
123 119
124 if (argv[1]) { 120 if (argv[1]) {
125 gl_library = argv[1]; 121 gl_library = argv[1];
126 } 122 }
127 123
149 pixels[3 * i] = rand() % 250 - 125; 145 pixels[3 * i] = rand() % 250 - 125;
150 pixels[3 * i + 1] = rand() % 250 - 125; 146 pixels[3 * i + 1] = rand() % 250 - 125;
151 pixels[3 * i + 2] = rand() % 250 - 125; 147 pixels[3 * i + 2] = rand() % 250 - 125;
152 } 148 }
153 149
154 #ifdef __QNXNTO__
155 f.glViewport(0, 0, video_h, video_w);
156 #else
157 f.glViewport(0, 0, video_w, video_h); 150 f.glViewport(0, 0, video_w, video_h);
158 #endif /* __QNXNTO__ */
159
160 f.glMatrixMode(GL_PROJECTION); 151 f.glMatrixMode(GL_PROJECTION);
161 f.glLoadIdentity(); 152 f.glLoadIdentity();
162 f.glOrthof(-100, 100, -100, 100, -500, 500); 153 f.glOrthof(-100, 100, -100, 100, -500, 500);
163 154
164 f.glMatrixMode(GL_MODELVIEW); 155 f.glMatrixMode(GL_MODELVIEW);