From a556b45abf18f1bd509daaf63b66b7d55e9fd291 Mon Sep 17 00:00:00 2001 From: jjesswan Date: Mon, 22 Apr 2024 21:56:26 -0400 Subject: add engine version --- engine-ocean/Engine/core.cpp | 46 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 engine-ocean/Engine/core.cpp (limited to 'engine-ocean/Engine/core.cpp') diff --git a/engine-ocean/Engine/core.cpp b/engine-ocean/Engine/core.cpp new file mode 100644 index 0000000..a0f8557 --- /dev/null +++ b/engine-ocean/Engine/core.cpp @@ -0,0 +1,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); +} -- cgit v1.2.3-70-g09d2