… | |
… | |
184 | |
184 | |
185 | extern struct timer |
185 | extern struct timer |
186 | { |
186 | { |
187 | static double now; |
187 | static double now; |
188 | static double diff; |
188 | static double diff; |
|
|
189 | static double fps; |
189 | |
190 | |
190 | static void frame (); |
191 | static void frame (); |
191 | timer (); |
192 | timer (); |
192 | } timer; |
193 | } timer; |
193 | |
194 | |
… | |
… | |
342 | { |
343 | { |
343 | return buffer; |
344 | return buffer; |
344 | } |
345 | } |
345 | }; |
346 | }; |
346 | |
347 | |
347 | const GLenum bbox_mode = GL_QUADS; |
|
|
348 | const GLsizei bbox_count = 6*4; |
|
|
349 | void gen_bbox (vertex_buffer_object &vb, const sector &a, const sector &b); |
348 | void draw_bbox (vertex_buffer_object &vb, const sector &a, const sector &b); |
350 | } |
349 | } |
351 | |
350 | |
352 | GLuint SDL_GL_LoadTexture (SDL_Surface *surface, GLfloat *texcoord); |
351 | GLuint SDL_GL_LoadTexture (SDL_Surface *surface, GLfloat *texcoord); |
353 | |
352 | |
354 | #endif |
353 | #endif |