|
SleakEngine 0.1.0
C++23 multi-backend game engine
|
#include <Core/OSDef.hpp>#include <string>#include <functional>#include <unordered_map>#include <vector>#include <Events/Delegate.hpp>Go to the source code of this file.
Classes | |
| class | Sleak::Event |
| class | Sleak::EventDispatcher |
Namespaces | |
| namespace | Sleak |
| Root namespace for everything the engine exposes. | |
Macros | |
| #define | BIND_FUNC_0(Function, class_name) |
| #define | BIND_FUNC_1(Function, class_name) |
| #define | BIND_FUNC_2(Function, class_name) |
| #define | BIND_FUNC_3(Function, class_name) |
| #define | BIND_LAMBDA(fn) |
| #define | EVENT_CLASS_CATEGORY(category) |
| #define | EVENT_CLASS_TYPE(type) |
| #define | GET_DISPATCHER Sleak::EventDispatcher::GetInstance() |
Enumerations | |
| enum class | Sleak::EventCategory { Sleak::EventCategory::None = (1 << 0) , Sleak::EventCategory::Application = (1 << 1) , Sleak::EventCategory::Input = (1 << 2) , Sleak::EventCategory::Keyboard = (1 << 3) , Sleak::EventCategory::Mouse = (1 << 4) , Sleak::EventCategory::MouseButton = (1 << 5) } |
| enum class | Sleak::EventType { Sleak::EventType::Unknown = 0 , Sleak::EventType::WindowOpen , Sleak::EventType::WindowClose , Sleak::EventType::WindowResize , Sleak::EventType::WindowFullscreen , Sleak::EventType::WindowFocus , Sleak::EventType::WindowLostFocus , Sleak::EventType::WindowMoved , Sleak::EventType::Tick , Sleak::EventType::Update , Sleak::EventType::Render , Sleak::EventType::KeyPressed , Sleak::EventType::KeyReleased , Sleak::EventType::KeyTyped , Sleak::EventType::MousePressed , Sleak::EventType::MouseReleased , Sleak::EventType::MouseMoved , Sleak::EventType::MouseScrolled } |
Functions | |
| template<typename T, typename... Args> | |
| void | Sleak::DispatchEvent (Args &&... args) |
| Constructs a T from args and dispatches it through EventDispatcher. | |
| std::ostream & | Sleak::operator<< (std::ostream &os, const Event &e) |
| #define BIND_FUNC_0 | ( | Function, | |
| class_name ) |
| #define BIND_FUNC_1 | ( | Function, | |
| class_name ) |
| #define BIND_FUNC_2 | ( | Function, | |
| class_name ) |
| #define BIND_FUNC_3 | ( | Function, | |
| class_name ) |
| #define BIND_LAMBDA | ( | fn | ) |
| #define EVENT_CLASS_CATEGORY | ( | category | ) |
| #define EVENT_CLASS_TYPE | ( | type | ) |