|
Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
|
#include "ecs/EntityFactory.hpp"#include "renderer/VulkanRenderer.hpp"#include "renderer/ResourceManager.hpp"#include "ecs/components/Transform.hpp"#include "ecs/components/Name.hpp"#include "ecs/components/PrimitiveType.hpp"#include "ecs/components/Mesh.hpp"#include "ecs/components/Material.hpp"#include "ecs/components/Camera.hpp"#include "ecs/components/inputComponent.hpp"#include "ecs/components/Grid.hpp"#include "ecs/components/Primitives.hpp"#include "ecs/components/Skeleton.hpp"#include "ecs/components/Animator.hpp"#include <GLFW/glfw3.h>#include <stdexcept>Namespaces | |
| namespace | EntityFactory |
| Factory functions to create, configure, and initialize typical entities and their Vulkan rendering resources. | |
Functions | |
| void | EntityFactory::uploadMesh (Registry ®istry, VulkanRenderer &renderer, Entity entity) |
| Allocates and uploads GPU buffers for a mesh component on the specified entity. | |
| Entity | EntityFactory::spawnPrimitive (Registry ®istry, VulkanRenderer &renderer, PrimitiveKind kind, const std::string &name, const glm::vec3 &position) |
| Spawns an entity with a basic geometric primitive mesh. | |
| Entity | EntityFactory::spawnCamera (Registry ®istry, VulkanRenderer &renderer, const std::string &name, const glm::vec3 &position, const glm::vec3 &rotation, float fov) |
| Spawns a camera entity. | |
| Entity | EntityFactory::spawnGrid (Registry ®istry, VulkanRenderer &renderer, const std::string &name, const glm::vec3 &position, const glm::vec3 &rotation, const glm::vec4 &color, float spacing, float size) |
| Spawns a grid entity used for rendering editor grids. | |
| Entity | EntityFactory::spawnAnimatedModel (Registry ®istry, VulkanRenderer &renderer, const std::string &name, const std::string &gltfPath, const glm::vec3 &position) |
| Spawns an animated or static glTF mesh model. | |