-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.h
More file actions
36 lines (26 loc) · 643 Bytes
/
app.h
File metadata and controls
36 lines (26 loc) · 643 Bytes
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
//-----------------------------------------------------------------------------
// File: app.h
//
// The main application itself
//-----------------------------------------------------------------------------
#ifndef APP_H
#define APP_H
#include "camera.h"
#include "displaylist.h"
#include "util.h"
extern const char* const APP_NAME;
class app_t {
// The actual application
public:
result_t create(const char* cmd_line);
void destroy();
void frame();
void set_game_map(const char* name);
static app_t& get_instance();
private:
app_t() {}
camera_t ui_camera;
display_list_t dl;
};
#define app (app_t::get_instance())
#endif