static void calc_framerate(void);
static void print_framerate(void);
-static float view_matrix[16], proj_matrix[16];
+float view_matrix[16], proj_matrix[16];
static int should_swap;
static unsigned long framerate;
float win_aspect;
int fb_srgb;
+float view_matrix[16], proj_matrix[16];
+
enum {
MOD_SHIFT = 1,
MOD_ALT = 2,
+#include "opengl.h"
#include "screen.h"
#include "cmesh.h"
static void draw(void)
{
+ glTranslatef(0, 0, 6);
+
+ cmesh_draw(blkmesh);
}
static void reshape(int x, int y)
/* default options */
opt = def_opt;
+ if(!(opt.start_scr = malloc(strlen(def_opt.start_scr) + 1))) {
+ perror("failed to allocate memory");
+ return -1;
+ }
+ strcpy(opt.start_scr, def_opt.start_scr);
argv0 = argv[0];