Saga
Saga Game Engine
Loading...
Searching...
No Matches
core.h
Go to the documentation of this file.
1#pragma once
2
3#include "Graphics/global.h"
4#include <GLFW/glfw3.h>
5
6
7namespace Saga {
8
9class App;
10
16class Core {
17public:
18 Core();
19 ~Core();
20 void update(double deltaTime, double time);
21 void fixedupdate(double fixedDeltaTime, double time);
22 void draw();
23 void keyEvent(int key, int action);
24 void mousePosEvent(double xpos, double ypos);
25 void mouseButtonEvent(int button, int action);
26 void scrollEvent(double distance);
27 void windowResizeEvent(int width, int height);
28 void framebufferResizeEvent(int width, int height);
29
30private:
31 std::shared_ptr<App> application;
32 double time;
33};
34} // namespace Saga
A wrapper around App that separates it from Window, the script running the game loop....
Definition: core.h:16
void mouseButtonEvent(int button, int action)
Definition: core.cpp:57
void fixedupdate(double fixedDeltaTime, double time)
Definition: core.cpp:41
void update(double deltaTime, double time)
Definition: core.cpp:27
void windowResizeEvent(int width, int height)
Definition: core.cpp:70
void framebufferResizeEvent(int width, int height)
Definition: core.cpp:65
void draw()
Definition: core.cpp:45
void mousePosEvent(double xpos, double ypos)
Definition: core.cpp:53
~Core()
Definition: core.cpp:22
void keyEvent(int key, int action)
Definition: core.cpp:49
void scrollEvent(double distance)
Definition: core.cpp:61
Core()
Definition: core.cpp:16
Definition: app.cpp:8