summaryrefslogtreecommitdiff
path: root/engine-ocean/Engine/core.cpp
diff options
context:
space:
mode:
authorjjesswan <jessica_wan@brown.edu>2024-04-22 21:56:26 -0400
committerjjesswan <jessica_wan@brown.edu>2024-04-22 21:56:26 -0400
commita556b45abf18f1bd509daaf63b66b7d55e9fd291 (patch)
treebc9b8a2d184c12aee236e7f9f276a34b84ca552d /engine-ocean/Engine/core.cpp
parentcd7c76017a12bb548036571c1ff13e551369d06d (diff)
add engine version
Diffstat (limited to 'engine-ocean/Engine/core.cpp')
-rw-r--r--engine-ocean/Engine/core.cpp46
1 files changed, 46 insertions, 0 deletions
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);
+}