43 std::unique_ptr<FunctionUtils::BaseFunction<void, Engine::Core &, int, int, int, int>> keyCallback =
44 std::make_unique<KeyCallback>(callback);
59 std::unique_ptr<FunctionUtils::BaseFunction<void, Engine::Core &, unsigned int>> charCallback =
60 std::make_unique<CharCallback>(callback);
75 std::unique_ptr<FunctionUtils::BaseFunction<void, Engine::Core &, unsigned int, int>> charModsCallback =
76 std::make_unique<CharModsCallback>(callback);
91 std::unique_ptr<FunctionUtils::BaseFunction<void, Engine::Core &, int, int, int>> mouseButtonCallback =
92 std::make_unique<MouseButtonCallback>(callback);
107 std::unique_ptr<FunctionUtils::BaseFunction<void, Engine::Core &, double, double>> cursorPosCallback =
108 std::make_unique<CursorPosCallback>(callback);
123 std::unique_ptr<FunctionUtils::BaseFunction<void, Engine::Core &, int>> cursorEnterCallback =
124 std::make_unique<CursorEnterCallback>(callback);
139 std::unique_ptr<FunctionUtils::BaseFunction<void, Engine::Core &, double, double>> scrollCallback =
140 std::make_unique<ScrollCallback>(callback);
155 std::unique_ptr<FunctionUtils::BaseFunction<void, Engine::Core &, int, const char **>> dropCallback =
156 std::make_unique<DropCallback>(callback);
176 callback->Call(core, key, scancode, action, mods);
192 callback->Call(core, codepoint);
209 callback->Call(core, codepoint, mods);
227 callback->Call(core, button, action, mods);
244 callback->Call(core, xpos, ypos);
260 callback->Call(core, entered);
277 callback->Call(core, xoffset, yoffset);
294 callback->Call(core,
count, paths);
static void DropCallback(GLFWwindow *window, int count, const char **paths)
Definition BindCallbacksToGLFW.cpp:69
static void CursorPosCallback(GLFWwindow *window, double xpos, double ypos)
Definition BindCallbacksToGLFW.cpp:48
static void MouseButtonCallback(GLFWwindow *window, int button, int action, int mods)
Definition BindCallbacksToGLFW.cpp:41
static void ScrollCallback(GLFWwindow *window, double xoffset, double yoffset)
Definition BindCallbacksToGLFW.cpp:62
static void KeyCallback(GLFWwindow *window, int key, int scancode, int action, int mods)
Definition BindCallbacksToGLFW.cpp:20
static void CharModsCallback(GLFWwindow *window, unsigned int codepoint, int mods)
Definition BindCallbacksToGLFW.cpp:34
static void CharCallback(GLFWwindow *window, unsigned int codepoint)
Definition BindCallbacksToGLFW.cpp:27
static void CursorEnterCallback(GLFWwindow *window, int entered)
Definition BindCallbacksToGLFW.cpp:55
static int count
Definition SystemSetTest.cpp:7
The core is the place where all the data of the engine is stored. It contains the registry (entities)...
Definition Core.hpp:33
Abstract class that holds a callable object, to be later stored in a container.
Definition CallableFunction.hpp:13
Container for functions, allowing for dynamic storage and invocation.
Definition FunctionContainer.hpp:14
GLFWwindow * GetGLFWWindow() const
Get a pointer to the GLFW window.
Definition Window.hpp:59
std::size_t FunctionID
FunctionID class to represent a unique identifier for functions.
Definition FunctionID.hpp:9