Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
Loading...
Searching...
No Matches
EditorUI.cpp File Reference
#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 &registry, 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 {}

Macro Definition Documentation

◆ GLM_ENABLE_EXPERIMENTAL

#define GLM_ENABLE_EXPERIMENTAL

Function Documentation

◆ entityHasSkin()

bool entityHasSkin ( Registry & registry,
Entity entity )

◆ loadImportSettingsMetadata()

void loadImportSettingsMetadata ( const std::filesystem::path & path)

◆ saveImportSettings()

void saveImportSettings ( )

◆ writeExtractedFile()

bool writeExtractedFile ( const std::string & relativePath,
const void * data,
size_t size )

Variable Documentation

◆ s_brushModeActive

bool s_brushModeActive = false

◆ s_brushTileId

int s_brushTileId = -1

◆ s_brushTilemapEntity

Entity s_brushTilemapEntity

◆ s_editingTileset

Engine::TilesetAsset s_editingTileset

◆ s_editingTilesetPath

std::string s_editingTilesetPath

◆ s_importMetadata

ImportSettingsMetadata s_importMetadata

◆ s_importSettingsAssetPath

std::filesystem::path s_importSettingsAssetPath

◆ s_openAnimationEditorWindow

bool s_openAnimationEditorWindow = false

◆ s_openAnimatorControllerWindow

bool s_openAnimatorControllerWindow = false

◆ s_openImportSettingsWindow

bool s_openImportSettingsWindow = false

◆ s_openNodeGraphDemoWindow

bool s_openNodeGraphDemoWindow = false

◆ s_openTilesetEditorWindow

bool s_openTilesetEditorWindow = false

◆ s_tilesetLoaded

bool s_tilesetLoaded = false

◆ s_triggerLoadImportSettings

bool s_triggerLoadImportSettings = false

◆ s_tsCellSize

float s_tsCellSize = 64.f

◆ s_tsIsPanning

bool s_tsIsPanning = false

◆ s_tsPanOffset

ImVec2 s_tsPanOffset { 0.f, 0.f }

◆ s_tsPanOffsetStart

ImVec2 s_tsPanOffsetStart {}

◆ s_tsPanStart

ImVec2 s_tsPanStart {}