-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenu.h
More file actions
51 lines (36 loc) · 1.32 KB
/
Menu.h
File metadata and controls
51 lines (36 loc) · 1.32 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
#include "Map.h"
class Menu
{
public: //public everything!!!!!
// ––––– ANIMATION ––––– //
int* m_animation_right = NULL, // move to the right
* m_animation_left = NULL, // move to the left
* m_animation_up = NULL, // move upwards
* m_animation_down = NULL; // move downwards
// ––––– PHYSICS (GRAVITY) ––––– //
glm::vec3 m_position;
// ————— TRANSFORMATIONS ————— //
glm::vec3 m_movement;
glm::mat4 m_model_matrix;
float m_width = 1;
float m_height = 1;
public:
// bool dead = false; //this becomes true when entity falls out of map, position -4 or -5
// ————— STATIC VARIABLES ————— //
static const int SECONDS_PER_FRAME = 4;
static const int LEFT = 0,
RIGHT = 1,
UP = 2,
DOWN = 3;
// ————— ANIMATION ————— /
int m_animation_frames = 0,
m_animation_index = 0,
m_animation_cols = 0,
m_animation_rows = 0;
int* m_animation_indices = NULL;
float m_animation_time = 0.0f;
GLuint m_texture_id;
Menu();
void draw_sprite_from_texture_atlas(ShaderProgram* program, GLuint texture_id, int index);
void render(ShaderProgram* program);
};