-
Notifications
You must be signed in to change notification settings - Fork 6
/
render.h
59 lines (48 loc) · 1.04 KB
/
render.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#define TARGET_FPS 45
#define FPSTIME (1000/TARGET_FPS)
int render_init( void );
void render_shut( void );
int render( void );
Uint32 timing( Uint32 interval, void *dummy );
void user_interaction( int i );
enum
{
ACTION_TUNEPETAL_1 = 1,
ACTION_TUNEPETAL_2,
ACTION_TUNEPETAL_3,
ACTION_TUNEPETAL_4,
ACTION_TUNEPETAL_5,
ACTION_TUNEPETAL_6,
ACTION_TUNEPETAL_7,
ACTION_TUNEPETAL_8,
ACTION_TEXTPETAL_1,
ACTION_TEXTPETAL_2,
ACTION_TEXTPETAL_3,
ACTION_TEXTPETAL_4,
ACTION_TEXTPETAL_5,
ACTION_TEXTPETAL_6,
ACTION_TEXTPETAL_7,
ACTION_TEXTPETAL_8,
ACTION_RESET_TUNEFLOWER,
ACTION_RESET_TEXTFLOWER,
ACTION_START_SUNSET,
ACTION_DRAG_SCROLLBAR, // Pointing device required
ACTION_PRESS_X,
ACTION_DRAG_SCROLLBOX, // Pointing device required
ACTION_SCROLL_UP,
ACTION_SCROLL_DOWN,
ACTION_STOPSCROLL,
ACTION_KILL_BUTTERFLY = 100,
ACTION_CLOUD_CLICK = 200
};
enum
{
PART_STARFIELD=1,
PART_PLANET_IN,
PART_PLANET_ZOOM,
PART_STARS_OUT,
PART_SUNRISE,
PART_FLOWERGROW,
PART_MAIN,
PART_SUNSET
};