Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenuScene.h
More file actions
Latest commit
46 lines (31 loc) · 982 Bytes
/
Copy pathMenuScene.h
File metadata and controls
46 lines (31 loc) · 982 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
44
45
46
#pragma once
#include"scene.h"
classShader;
classmenuScene : publicscene {
public:
std::vector< glm::vec3 > vertices_sphere; //정점 저장 변수
std::vector< glm::vec2 > uvs_sphere;
std::vector< glm::vec3 > normals_sphere; //노멀 저장 변수
std::vector< glm::vec3 > vertices_back;
std::vector< glm::vec2 > uvs_back;
std::vector< glm::vec3 > normals_back;
glm::mat4 modelmat{ glm::mat4(1.0f) }; //뷰 행렬
GLuint VAO;
GLuint VBO_position[2];
GLuint VAO_back;
GLuint VBO_back_position[2];
Shader ourShader;
Shader ourShader2;
int balljump_count{ 0 };
bool ballJump{ false };
float ball_y{ -1.0f };
public:
~menuScene();
voidInitTexture();
virtualvoidinit() override;
virtualvoidprocessKey(unsignedchar key, int x, int y) override;
virtualvoidMouse(int button, int state, int x, int y) override;
virtualvoidMouseMotion(int x, int y) override;
virtualvoidUpdate(constfloat frameTime) override;
virtualvoidRender() override;
};