34 lines
527 B
C
34 lines
527 B
C
#include <SDL/SDL.h>
|
|
#include <GL/gl.h>
|
|
#include "gamedefs.h"
|
|
|
|
struct config
|
|
{
|
|
char theme[256];
|
|
unsigned side[3];
|
|
unsigned n;
|
|
float cube;
|
|
int flags;
|
|
GLuint texture[THEME_N];
|
|
};
|
|
|
|
struct game
|
|
{
|
|
struct config *config;
|
|
struct display *display;
|
|
enum status_t {PLAYING, WON, LOST, QUIT, NEWGAME} status;
|
|
int descubiertas;
|
|
int start_time;
|
|
char ***campo;
|
|
char ***campoV;
|
|
};
|
|
|
|
struct display
|
|
{
|
|
enum mod_status_t { CTRL, SHIFT, ALT, NONE} mod_status;
|
|
float tilt_y;
|
|
float zoom;
|
|
float up;
|
|
float side;
|
|
};
|