|
Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
|
#include "editor/EditorUI.hpp"#include "editor/EditorUIInternal.hpp"#include "meta/ComponentReflection.hpp"#include "scenes/JSONUtils.hpp"#include "ufbx.h"#include "cgltf.h"#include <limits>#include <algorithm>#include <stdexcept>#include <string>#include <fstream>#include <cstdlib>#include <GLFW/glfw3.h>#include <glm/gtc/matrix_transform.hpp>#include <imgui.h>#include <backends/imgui_impl_glfw.h>#include <backends/imgui_impl_vulkan.h>#include <glm/gtx/matrix_decompose.hpp>#include "ecs/Registry.hpp"#include "ecs/components/Material.hpp"#include "ecs/components/Mesh.hpp"#include "ecs/components/Name.hpp"#include "ecs/components/Transform.hpp"#include "ecs/components/PrimitiveType.hpp"#include "ecs/components/Camera.hpp"#include "ecs/components/Grid.hpp"#include "ecs/components/Skeleton.hpp"#include "ecs/components/Animator.hpp"#include "ecs/components/Hierarchy.hpp"#include "ecs/components/EditorCamera.hpp"#include "ecs/components/AnimationController.hpp"#include "ecs/components/IKSolver.hpp"#include "ecs/components/RigidBody.hpp"#include "ecs/components/Collider.hpp"#include "ecs/components/PlayerControllerComponent.hpp"#include "ecs/components/PhysgunScript.hpp"#include "ecs/components/Tilemap.hpp"#include "scenes/TilesetAsset.hpp"#include "ecs/components/UIComponents.hpp"#include "ecs/components/LightComponent.hpp"#include "editor/AssetBrowserRegistry.hpp"#include <functional>#include "renderer/VulkanRenderer.hpp"#include "scenes/Scene.hpp"#include "scenes/SceneManager.hpp"#include "scenes/SceneSerializer.hpp"#include "renderer/ResourceManager.hpp"#include <filesystem>#include "ImGuizmo.h"Macros | |
| #define | GLM_ENABLE_EXPERIMENTAL |
Functions | |
| void | loadImportSettingsMetadata (const std::filesystem::path &path) |
| void | saveImportSettings () |
| bool | writeExtractedFile (const std::string &relativePath, const void *data, size_t size) |
| bool | entityHasSkin (Registry ®istry, Entity entity) |
Variables | |
| bool | s_openImportSettingsWindow = false |
| bool | s_triggerLoadImportSettings = false |
| ImportSettingsMetadata | s_importMetadata |
| std::filesystem::path | s_importSettingsAssetPath |
| bool | s_openTilesetEditorWindow = false |
| bool | s_openAnimationEditorWindow = false |
| bool | s_openNodeGraphDemoWindow = false |
| bool | s_openAnimatorControllerWindow = false |
| std::string | s_editingTilesetPath |
| Engine::TilesetAsset | s_editingTileset |
| bool | s_tilesetLoaded = false |
| int | s_brushTileId = -1 |
| bool | s_brushModeActive = false |
| Entity | s_brushTilemapEntity |
| ImVec2 | s_tsPanOffset { 0.f, 0.f } |
| float | s_tsCellSize = 64.f |
| bool | s_tsIsPanning = false |
| ImVec2 | s_tsPanStart {} |
| ImVec2 | s_tsPanOffsetStart {} |
| #define GLM_ENABLE_EXPERIMENTAL |
| void loadImportSettingsMetadata | ( | const std::filesystem::path & | path | ) |
| void saveImportSettings | ( | ) |
| bool writeExtractedFile | ( | const std::string & | relativePath, |
| const void * | data, | ||
| size_t | size ) |
| bool s_brushModeActive = false |
| int s_brushTileId = -1 |
| Entity s_brushTilemapEntity |
| Engine::TilesetAsset s_editingTileset |
| std::string s_editingTilesetPath |
| ImportSettingsMetadata s_importMetadata |
| std::filesystem::path s_importSettingsAssetPath |
| bool s_openAnimationEditorWindow = false |
| bool s_openAnimatorControllerWindow = false |
| bool s_openImportSettingsWindow = false |
| bool s_openNodeGraphDemoWindow = false |
| bool s_openTilesetEditorWindow = false |
| bool s_tilesetLoaded = false |
| bool s_triggerLoadImportSettings = false |
| float s_tsCellSize = 64.f |
| bool s_tsIsPanning = false |
| ImVec2 s_tsPanOffset { 0.f, 0.f } |
| ImVec2 s_tsPanOffsetStart {} |
| ImVec2 s_tsPanStart {} |