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
Engine Namespace Reference

Classes

class  Application
 Encapsulates the core engine lifecycle, main render loop, window, Vulkan renderer, and systems. More...
struct  ApplicationConfig
 Structure holding start configuration for window size, mode, and start scene paths. More...
class  AssetBrowserRegistry
 Registry for adding custom options and submenu items to the Asset Browser's right-click context menu. More...
class  AudioSystem
 System responsible for managing 3D spatialized and 2D audio playback. More...
struct  CanvasComponent
struct  CollisionInfo
struct  ComponentField
 Reflection metadata for a single field inside a component. More...
struct  ComponentReflection
 Reflection metadata and ECS callbacks for a component. More...
class  ComponentReflectionRegistry
 Central singleton managing the registered component reflections. More...
struct  DeduceFieldType
struct  DeduceFieldType< bool >
struct  DeduceFieldType< double >
struct  DeduceFieldType< Entity >
struct  DeduceFieldType< float >
struct  DeduceFieldType< glm::vec2 >
struct  DeduceFieldType< glm::vec3 >
struct  DeduceFieldType< glm::vec4 >
struct  DeduceFieldType< int >
struct  DeduceFieldType< RigidBodyType >
struct  DeduceFieldType< RotationField >
struct  DeduceFieldType< std::string >
class  DefaultScene
 A generic, data-driven scene implementation that loads its structure from a JSON file. More...
struct  EntityArchetype
 Describes a pre-defined entity template that appears in the "Create" and "Create Child" menus in the hierarchy panel. More...
class  EntityArchetypeRegistry
 Singleton that holds all registered entity archetypes in insertion order. More...
class  JobSystem
 A lightweight thread pool scheduler for processing concurrent jobs in parallel. More...
struct  LightComponent
 Component representing a light source in the scene. More...
struct  Node
 Defines a node card in the graph. More...
class  NodeGraph
 Generic node-editor graph data structure, renderer, and serializer. More...
 Defines a connection between an output pin and an input pin. More...
struct  NodePin
 Defines an input or output connection pin on a node. More...
struct  NodePinType
 Defines the type name and connection slot color for validation and aesthetics. More...
class  PhysicsSystem
 Evaluates rigid body movement and resolves collider intersections. More...
struct  Ray
struct  RaycastHit
struct  RectTransform
struct  SpriteRenderer
 Component that renders a textured 2D quad (sprite) on an entity. More...
class  SpriteSystem
 System that drives SpriteRenderer components. More...
struct  TileAsset
 Represents one tile slot in a tileset. Saved to disk as a small <name>.tile JSON file. More...
struct  TilemapComponent
 Represents a 2D tile grid in the scene. References a tileset by its disk path (.tileset file). The TilemapSystem loads the tileset, builds a packed atlas, and generates a single mesh + material per tilemap entity. More...
class  TilemapSystem
 System that processes TilemapComponents to build dynamic meshes and generate static physics colliders. More...
struct  TilesetAsset
 A disk asset (.tileset JSON) that owns an ordered list of TileAssets. At runtime, a CPU-side atlas is built by packing every tile texture into a single RGBA image, which is uploaded to Vulkan once. This gives the TilemapSystem a single draw call per tilemap. More...
struct  UIButtonComponent
struct  UIGridLayoutGroupComponent
struct  UIImageComponent
struct  UILayoutGroupComponent
struct  UIPanelComponent
struct  UIScrollRectComponent
struct  UISliderComponent
class  UISystem
struct  UITextComponent
struct  UIToggleComponent

Enumerations

enum class  LightType { Directional = 0 , Point = 1 , Spot = 2 }
 Type of light source calculation. More...
enum class  GridConstraint { Flexible = 0 , FixedColumnCount = 1 , FixedRowCount = 2 }
enum class  FieldType {
  Float , Int , Bool , Vec3 ,
  RigidBodyType , Entity , String , Vec2 ,
  Vec4
}
 Supported field types for component reflection. More...

Functions

ENGINE_API void registerBuiltinEntityArchetypes ()
ENGINE_API std::unordered_map< std::string, TilesetAsset > & getTilesetCache ()
 Returns a reference to the process-wide TilesetAsset cache. The TilemapSystem uses this to avoid reloading/repacking every frame.
ENGINE_API TilesetAsset * loadOrGetTileset (const std::string &path, VulkanRenderer &renderer)
 Loads a TilesetAsset from disk (or returns a cached copy). If the tileset file changes on disk, call invalidateTilesetCache() first.
ENGINE_API void invalidateTilesetCache (const std::string &path="")
 Evicts the specified entry (or all entries if path is empty) from the cache.
static ImVec2 getPinScreenPos (const NodePin &pin, const ImVec2 &canvasPos, const ImVec2 &pan, const std::vector< Node > &nodes)

Variables

static const NodePinType PIN_TYPE_FLOW = { "flow", IM_COL32(255, 255, 255, 255) }
static const NodePinType PIN_TYPE_FLOAT = { "float", IM_COL32(156, 220, 80, 255) }
static const NodePinType PIN_TYPE_INT = { "int", IM_COL32( 67, 198, 255, 255) }
static const NodePinType PIN_TYPE_BOOL = { "bool", IM_COL32(220, 100, 80, 255) }
static const NodePinType PIN_TYPE_STRING = { "string", IM_COL32(255, 200, 80, 255) }
static const NodePinType PIN_TYPE_VEC3 = { "Vec3", IM_COL32(120, 100, 220, 255) }
static const NodePinType PIN_TYPE_DIALOGUE = { "dialogue", IM_COL32(200, 80, 220, 255) }
static const NodePinType PIN_TYPE_STATE = { "state", IM_COL32(255, 165, 80, 255) }

Enumeration Type Documentation

◆ FieldType

enum class Engine::FieldType
strong

Supported field types for component reflection.

Enumerator
Float 
Int 
Bool 
Vec3 
RigidBodyType 
Entity 
String 
Vec2 
Vec4 

◆ GridConstraint

enum class Engine::GridConstraint
strong
Enumerator
Flexible 
FixedColumnCount 
FixedRowCount 

◆ LightType

enum class Engine::LightType
strong

Type of light source calculation.

Enumerator
Directional 

Global directional light (e.g., Sun).

Point 

Omnidirectional point light source.

Spot 

Cone-constrained spot light source.

Function Documentation

◆ getPinScreenPos()

ImVec2 Engine::getPinScreenPos ( const NodePin & pin,
const ImVec2 & canvasPos,
const ImVec2 & pan,
const std::vector< Node > & nodes )
static

◆ getTilesetCache()

std::unordered_map< std::string, TilesetAsset > & Engine::getTilesetCache ( )

Returns a reference to the process-wide TilesetAsset cache. The TilemapSystem uses this to avoid reloading/repacking every frame.

◆ invalidateTilesetCache()

void Engine::invalidateTilesetCache ( const std::string & path = "")

Evicts the specified entry (or all entries if path is empty) from the cache.

◆ loadOrGetTileset()

TilesetAsset * Engine::loadOrGetTileset ( const std::string & path,
VulkanRenderer & renderer )

Loads a TilesetAsset from disk (or returns a cached copy). If the tileset file changes on disk, call invalidateTilesetCache() first.

Parameters
pathProject-relative path to the .tileset file.
Returns
Pointer to the cached TilesetAsset, or nullptr if the file cannot be read.

◆ registerBuiltinEntityArchetypes()

void Engine::registerBuiltinEntityArchetypes ( )

Variable Documentation

◆ PIN_TYPE_BOOL

const NodePinType Engine::PIN_TYPE_BOOL = { "bool", IM_COL32(220, 100, 80, 255) }
static

◆ PIN_TYPE_DIALOGUE

const NodePinType Engine::PIN_TYPE_DIALOGUE = { "dialogue", IM_COL32(200, 80, 220, 255) }
static

◆ PIN_TYPE_FLOAT

const NodePinType Engine::PIN_TYPE_FLOAT = { "float", IM_COL32(156, 220, 80, 255) }
static

◆ PIN_TYPE_FLOW

const NodePinType Engine::PIN_TYPE_FLOW = { "flow", IM_COL32(255, 255, 255, 255) }
static

◆ PIN_TYPE_INT

const NodePinType Engine::PIN_TYPE_INT = { "int", IM_COL32( 67, 198, 255, 255) }
static

◆ PIN_TYPE_STATE

const NodePinType Engine::PIN_TYPE_STATE = { "state", IM_COL32(255, 165, 80, 255) }
static

◆ PIN_TYPE_STRING

const NodePinType Engine::PIN_TYPE_STRING = { "string", IM_COL32(255, 200, 80, 255) }
static

◆ PIN_TYPE_VEC3

const NodePinType Engine::PIN_TYPE_VEC3 = { "Vec3", IM_COL32(120, 100, 220, 255) }
static