Skip to content

Class Context

ClassList > Context

Unified context container aggregating all context types. More...

  • #include <Context.h>

Public Attributes

Type Name
EditorContext editor = {}
Editor state (selections, etc.)
RenderContext render = {}
Render settings accessor.
SceneContext scene = {}
Scene graph read-only view.

Public Functions

Type Name
Context (EventPool & pool)
Constructs the context and subscribes to relevant events.
Context (const Context &) = delete
Context & operator= (const Context &) = delete

Detailed Description

Context is the single source of truth for queryable application state. It is passed across layers to enable decoupled data access: * Editor mutates Context * Renderer receives const Context& (read-only) * UI reads Context for display

Note:

Architecture: Context enforces one-way data flow and prevents hidden coupling

Public Attributes Documentation

variable editor

Editor state (selections, etc.)

EditorContext Context::editor;


variable render

Render settings accessor.

RenderContext Context::render;


variable scene

Scene graph read-only view.

SceneContext Context::scene;


Public Functions Documentation

function Context [1/2]

Constructs the context and subscribes to relevant events.

explicit Context::Context (
    EventPool & pool
) 

Parameters:

  • pool EventPool for subscribing to context-related events

function Context [2/2]

Context::Context (
    const Context &
) = delete

function operator=

Context & Context::operator= (
    const Context &
) = delete


The documentation for this class was generated from the following file src/editor/Context.h