-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.h
More file actions
65 lines (51 loc) · 1.3 KB
/
main.h
File metadata and controls
65 lines (51 loc) · 1.3 KB
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
60
61
62
63
64
65
#pragma once
#include "snoutlib/glfwapp.h"
#include "snoutlib/settings.h"
#include "snoutlib/loadingscreen.h"
#include "snoutlib/timer.h"
#include "snoutlib/misc.h"
#include "snoutlib/mfont.h"
#include "snoutlib/menu.h"
#include "snoutlib/staticmesh.h"
#include "snoutlib/gldefs.h"
#include "snoutlib/particles.h"
#include "pe_smoke.h"
#include "pe_bubbles.h"
#include "resources.h"
#include "gamemenu.h"
#include "layout.h"
#include "background.h"
#include "boat.h"
#include "pboat.h"
#include "credits.h"
#include "hiscore.h"
#include "torpedo.h"
#include "game.h"
class App {
Glfwapp *m_ctx;
FPScounter *m_fpscounter;
Background *m_background;
Credits *m_credits;
public:
GameMenu *m_gamemenu;
HiScore *m_hiscore;
private:
void init_settings(void);
void gl_check(void);
static void mousebuttoncb_wrapper(int button, int action);
void mousebutton_cb(int button,int action);
static void mouseposcb_wrapper(int x, int y);
void mousepos_cb(int x,int y);
static void mousewheelcb_wrapper(int pos);
void mousewheel_cb(int pos);
static void keycb_wrapper(int key, int action);
void keyboard_cb(int key,int action);
static void charcb_wrapper(int ch, int action);
void character_cb(int ch,int action);
public:
App(void);
~App();
void display_version(void);
void run_inner_loop(void);
void run(void);
};