Implemented Cube, in a sufficiently general way that it also handles

the tetrahedron, octahedron and icosahedron.

[originally from svn r4151]
This commit is contained in:
Simon Tatham
2004-04-27 17:44:30 +00:00
parent 9867234e70
commit d99e217cfb
5 changed files with 1309 additions and 14 deletions

View File

@ -17,7 +17,11 @@
enum {
LEFT_BUTTON = 0x1000,
MIDDLE_BUTTON,
RIGHT_BUTTON
RIGHT_BUTTON,
CURSOR_UP,
CURSOR_DOWN,
CURSOR_LEFT,
CURSOR_RIGHT
};
#define IGNORE(x) ( (x) = (x) )
@ -53,8 +57,6 @@ void midend_set_params(midend_data *me, game_params *params);
void midend_size(midend_data *me, int *x, int *y);
void midend_new_game(midend_data *me, char *seed);
void midend_restart_game(midend_data *me);
void midend_undo(midend_data *me);
void midend_redo(midend_data *me);
int midend_process_key(midend_data *me, int x, int y, int button);
void midend_redraw(midend_data *me);
float *midend_colours(midend_data *me, int *ncolours);