summaryrefslogtreecommitdiff
path: root/engine-ocean/Engine/core.cpp
blob: a0f8557eebbb6ec6d17c5321c52f38aaf6425215 (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
#include "core.h"

Core::Core()
{
}

Core::~Core(){

}

void Core::update(double deltaTime){
    m_app.update(deltaTime);

}

void Core::draw(){
    m_app.draw();
}

void Core::keyEvent(int key, int action){
    m_app.keyEvent(key, action);
}

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

    m_app.mousePosEvent(xpos,ypos);

}

void Core::mouseButtonEvent(int button, int action){
    m_app.mouseButtonEvent(button, action);

}

void Core::scrollEvent(double distance){
    m_app.scrollEvent(distance);

}

void Core::framebufferResizeEvent(int width, int height){
    m_app.framebufferResizeEvent(width, height);
}

void Core::windowResizeEvent(int width, int height){
    m_app.windowResizeEvent(width, height);
}