-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.h
More file actions
43 lines (34 loc) · 970 Bytes
/
App.h
File metadata and controls
43 lines (34 loc) · 970 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
37
38
39
40
41
42
43
#ifndef App_hpp
#define App_hpp
#include "GlutApp.h"
#include "gui/shapes/Rect.h"
#include "gui/components/TextureRect.h"
#include "gui/components/ComplexShape.h"
#include "gui/components/Button.h"
#include "gui/util/Game.h"
class App: public GlutApp {
// Maintain app state here
float mx;
float my;
public:
// Constructor, to initialize state
App(const char* label, int x, int y, int w, int h);
// These are the events we want to handle
void draw();
void keyPress(unsigned char key);
void keyUp(unsigned char key);
void mouseDown(float x, float y);
void mouseUp(float x, float y);
void mouseDrag(float x, float y);
void specialKeyPress(int key);
void specialKeyUp(int key);
//void idle();
Game* game = new Game();
//void resize(int w, int h);
//Rect * rect;
//TextureRect * background;
//TextureRect * text;
//Button<TextureRect>* catbox;
//TexRect* background;
};
#endif