summaryrefslogtreecommitdiff
path: root/engine-ocean/Game/MenuScreen.cpp
blob: dcf2f2e62dc74266ae90d785f2139d0d44235fe9 (plain)
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
#include "menuscreen.h"
#include "Game/GameWorld.h"
#include "Graphics/global.h"

MenuScreen::MenuScreen(std::map<int, Input>& input_map):
    m_input_map(input_map)
{

}

MenuScreen::~MenuScreen(){

}


void MenuScreen::update(double deltaTime){


}

void MenuScreen::draw(){
    Global::graphics.setClearColor(glm::vec3(0.f));
    Global::graphics.clearScreen(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    Global::graphics.bindShader("text");
    Global::graphics.drawUIText(Global::graphics.getFont("opensans"), "Game Menu", glm::ivec2(200, 200), AnchorPoint::TopLeft, Global::graphics.getFramebufferSize().x, 1.f, 0.1f, glm::vec3(1, 1, 1));
    Global::graphics.drawUIText(Global::graphics.getFont("opensans"), "Press 'B' to resume the game.", glm::ivec2(20, 70), AnchorPoint::TopLeft, Global::graphics.getFramebufferSize().x, 0.2f, 0.1f, glm::vec3(1, 1, 1));


}

void MenuScreen::keyEvent(int key, int action){

}

void MenuScreen::mousePosEvent(double xpos, double ypos){



}

void MenuScreen::mouseButtonEvent(int button, int action){


}

void MenuScreen::scrollEvent(double distance){


}

void MenuScreen::framebufferResizeEvent(int width, int height){
    Global::graphics.setFramebufferSize(glm::ivec2(width, height));

}

void MenuScreen::windowResizeEvent(int width, int height){
    Global::graphics.setWindowSize(glm::ivec2(width, height));

}