1 #ifndef CORE_INCLUDE_COREENGINE_HPP
2 #define CORE_INCLUDE_COREENGINE_HPP
16 void init(
const char *title,
int width = 640,
int height = 480,
int bpp = 0,
17 bool fullscreen =
false);
31 static void key_callback(GLFWwindow *window,
int key,
int scancode,
32 int action,
int modes);
std::shared_ptr< GameData > SharedDataRef
Definition: Common.hpp:14
The underlying engine that handles everything underneath.
Definition: CoreEngine.hpp:14
void changeState(StateMachine *state)
Definition: CoreEngine.cpp:34
bool m_fullscreen
Definition: CoreEngine.hpp:39
bool m_isRunning
Definition: CoreEngine.hpp:38
void cleanup()
Definition: CoreEngine.cpp:21
void popState()
Definition: CoreEngine.cpp:57
void handleEvents()
Definition: CoreEngine.cpp:70
GLFWwindow * m_window
Definition: CoreEngine.hpp:42
void init(const char *title, int width=640, int height=480, int bpp=0, bool fullscreen=false)
Definition: CoreEngine.cpp:8
void update()
Definition: CoreEngine.cpp:75
std::vector< StateMachine * > states
Definition: CoreEngine.hpp:36
void quit()
Definition: CoreEngine.hpp:29
void pushState(StateMachine *state)
Definition: CoreEngine.cpp:46
static void key_callback(GLFWwindow *window, int key, int scancode, int action, int modes)
Definition: CoreEngine.cpp:5
bool isRunning()
Definition: CoreEngine.hpp:28
void draw()
Definition: CoreEngine.cpp:80
SharedDataRef m_sharedData
Definition: CoreEngine.hpp:41
Definition: StateMachine.hpp:6