… | |
… | |
206 | RunGLTest (int argc, char *argv[], |
206 | RunGLTest (int argc, char *argv[], |
207 | int logo, int slowly, int bpp, float gamma, int noframe, int fsaa) |
207 | int logo, int slowly, int bpp, float gamma, int noframe, int fsaa) |
208 | { |
208 | { |
209 | int i; |
209 | int i; |
210 | int rgb_size[3]; |
210 | int rgb_size[3]; |
211 | int w = 640; |
211 | int w = 1600; |
212 | int h = 480; |
212 | int h = 1200; |
213 | int done = 0; |
213 | int done = 0; |
214 | int frames; |
214 | int frames; |
215 | Uint32 video_flags; |
215 | Uint32 video_flags; |
216 | int value; |
216 | int value; |
217 | GLenum gl_error; |
217 | GLenum gl_error; |
218 | |
218 | |
219 | if (SDL_Init (SDL_INIT_VIDEO) < 0) |
219 | if (SDL_Init (SDL_INIT_VIDEO) < 0) |
220 | { |
220 | { |
221 | fprintf (stderr, "Couldn't initialize SDL: %s\n", SDL_GetError ()); |
221 | fprintf (stderr, "Couldn't initialize SDL: %s\n", SDL_GetError ()); |
222 | exit (1); |
222 | exit (1); |
… | |
… | |
332 | planet->v = vec3 (10, 0, 0); |
332 | planet->v = vec3 (10, 0, 0); |
333 | moveables.push_back (planet); |
333 | moveables.push_back (planet); |
334 | |
334 | |
335 | doom3parse ("test.proc"); |
335 | doom3parse ("test.proc"); |
336 | |
336 | |
|
|
337 | skybox sb ( |
|
|
338 | "textures/skybox_mystery/1.jpg", |
|
|
339 | "textures/skybox_mystery/2.jpg", |
|
|
340 | "textures/skybox_mystery/3.jpg", |
|
|
341 | "textures/skybox_mystery/4.jpg", |
|
|
342 | "textures/skybox_mystery/5.jpg", |
|
|
343 | "textures/skybox_mystery/6.jpg" |
|
|
344 | ); |
|
|
345 | world_skybox = &sb; |
|
|
346 | |
337 | for (int i = 0; i < 20; i++) |
347 | for (int i = 0; i < 20; i++) |
338 | { |
348 | { |
339 | // load a entity |
349 | // load a entity |
340 | txtprt_parser p; |
350 | txtprt_parser p; |
341 | geometry *g; |
351 | geometry *g; |