Crimson Engine
1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
Toggle main menu visibility
Loading...
Searching...
No Matches
Plugin.hpp
Go to the documentation of this file.
1
#pragma once
2
#include "
ecs/Registry.hpp
"
3
#include "
ecs/SystemManager.hpp
"
4
#include "
renderer/VulkanRenderer.hpp
"
5
#include "
editor/EditorModeState.hpp
"
6
#include "
core/EngineAPI.hpp
"
7
#include <imgui.h>
8
9
#ifdef _WIN32
10
#define PLUGIN_API extern "C" __declspec(dllexport)
11
#else
12
#define PLUGIN_API extern "C"
13
#endif
14
19
struct
PluginContext
{
20
Registry
*
registry
;
21
SystemManager
*
systemManager
;
22
VulkanRenderer
*
renderer
;
23
EditorModeState
*
editorMode
;
24
ImGuiContext*
imguiContext
;
25
};
26
27
typedef
void (*
PluginInitFunc
)(
PluginContext
*);
28
typedef
void (*
PluginShutdownFunc
)(
PluginContext
*);
EditorModeState.hpp
EngineAPI.hpp
PluginInitFunc
void(* PluginInitFunc)(PluginContext *)
Definition
Plugin.hpp:27
PluginShutdownFunc
void(* PluginShutdownFunc)(PluginContext *)
Definition
Plugin.hpp:28
Registry.hpp
SystemManager.hpp
VulkanRenderer.hpp
Registry
Coordinates entities and components, providing creation, removal, lookup, and views.
Definition
Registry.hpp:30
SystemManager
Manages registration and sequential updating of active ECS systems.
Definition
SystemManager.hpp:13
VulkanRenderer
Manages core Vulkan pipeline states, device interaction, frames, buffers, and command submissions.
Definition
VulkanRenderer.hpp:127
EditorModeState
Struct keeping track of active editor states (e.g. fly mode vs editor UI interaction).
Definition
EditorModeState.hpp:7
PluginContext
State container passed to dynamic libraries upon initialization.
Definition
Plugin.hpp:19
PluginContext::systemManager
SystemManager * systemManager
Definition
Plugin.hpp:21
PluginContext::renderer
VulkanRenderer * renderer
Definition
Plugin.hpp:22
PluginContext::imguiContext
ImGuiContext * imguiContext
Definition
Plugin.hpp:24
PluginContext::registry
Registry * registry
Definition
Plugin.hpp:20
PluginContext::editorMode
EditorModeState * editorMode
Definition
Plugin.hpp:23
engine
include
core
Plugin.hpp
Generated by
1.17.0