DEKI
/
ENGINE
docs
manual
api reference
engine
packages
blog
github
discord
donate
download
English
English
日本語
简体中文
한국어
Deki
0.40.1
Modular C++ engine with a visual editor, for 2D and 3D
Toggle main menu visibility
Loading...
Searching...
No Matches
API reference
Every class in the engine and the editor, from the code.
Start here
AssetRef
Typed asset reference: use it like a T*
Component
The base class of every component
Engine
Engine singleton: owns the scene system, lifecycle and frame loop
Object
A node in the scene: a name, components, children and, in most builds, a transform
ObjectRef
An object reference the user assigns in the editor
Scene
A scene: objects with components, and Deki's basic unit of content
Time
The engine's clock, independent of the platform
Engine
AllocContext
Who asked for an allocation, filled in by the compiler
AssetLookupTable
Maps "path:type" keys to asset GUIDs with a binary search and no heap allocation
AssetManager
Loads, caches and frees assets, by path or GUID
AssetPackReader
Finds which pack file holds an asset and loads pack files into memory
AssetRef
Typed asset reference: use it like a T*
AssetRefBase
The untyped part of AssetRef, so the asset system can reach guid and ptr without knowing T
AutoSetupRegistrar
Registers an auto SetupComponent from a static initializer
Buffer
Owning array of T, freed when it goes out of scope
Color
An RGBA colour, 8 bits per channel, with conversions to and from packed formats (RGB565, RGB888, ARGB8888, RGBA8888), floats and HSV
Component
The base class of every component
ComponentFactory
Creates components by type id and tells which class an id belongs to
ComponentMeta
Component metadata for runtime reflection
ComponentRegistry
Component metadata and field tables, by type id and, in the editor, by name
ComponentsMigrationRegistrar
Registers a components migration on construction and removes it on destruction
ComponentTypeInfo
Everything the engine knows about one component class
CoreProjectSettings
The Core section of the project settings: FPS cap and target frame rate
DPackEntry
One asset in a pack file's table: GUID, type name, offset and size
DPackHeader
Header at the start of a pack file
Engine
Engine singleton: owns the scene system, lifecycle and frame loop
Engine::FrameTimings
How long the parts of a frame took, in milliseconds of the engine's clock: update (input, lifecycle, update callbacks), render and present
EngineHost
How the engine is hosted
EngineSettings
Engine settings, loaded from the project config
FieldRef
Compact field descriptor, the one piece of reflection on every platform
FileImage
Read-only pack of a game's files in one block of bytes, used where it lies
FileImage::File
One file to pack: its name in the image and its bytes
FileSystem
Holds the process-wide filesystems
FPSCounter
Measures the frame rate the engine reaches, averaged over recent frames
HostFileSystem
The file system of a game that runs as a program on an operating system
HostMemoryProvider
Memory provider over the C heap (malloc/free), for any host with a normal C library heap: the editor, desktop and simulator builds, tests
ICamera
Camera interface for coordinate conversion
IClipProvider
Interface of a component whose clip rectangle the 2D renderer applies while drawing it
IDisplay
What a display package implements: setup, presenting frames, events and UI overlays
IFileSystem
What a filesystem package implements: file operations, path conversion and USB storage mode
IInputSystem
The input system as the engine sees it, so it need not link to the implementation in the input package DLL
IMemoryProvider
The platform's memory, as the engine sees it, so the engine has no platform-specific allocation code: a microcontroller with external RAM uses its SDK's capability allocator, a part without it or a desktop uses malloc
IPackage
What a hardware peripheral package (SD card, GPS, WiFi, ...) implements
IPower
Device power management (sleep and wake)
IPower::SleepInfo
The sleep mode a driver is in, with its platform name for diagnostics
IRenderSystem
The render system as the engine sees it, so it need not link to the implementation in the rendering package DLL
ISortableProvider
Interface of a component whose object the 2D renderer sorts by GetSortingOrder()
ITimeProvider
The platform's millisecond clock, such as SDL_GetTicks() on SDL3 or esp_timer_get_time() / 1000 on ESP32
LoadedPack
A pack file loaded into memory
LoadedPack::AssetInfo
One asset in a loaded pack: its bytes and type name
LogSystem
Backend of the DEKI_LOG macros, with a callback for the editor console
Mat4
4x4 matrix in the layout OpenGL/GLSL expect: column-major, m[col][row]
Memory
The engine's memory, in named regions
Memory::Region
Where an allocation lives
MemorySite
One place in the code that allocates through the engine, and what it holds
MemoryStats
Bytes allocated through the engine right now, in total and by memory region
NodeRef
Reference from one node-graph node to another in the same graph, by its id
Object
A node in the scene: a name, components, children and, in most builds, a transform
ObjectRef
An object reference the user assigns in the editor
ObjectRefBase
The type-erased part of ObjectRef, which the engine uses
PackageConfig
Runtime configuration of one hardware package on a board: pin assignments (GPIO numbers) and string settings, loaded from the platform JSON
PackIndexEntry
One pack_index.bin entry: which pack file holds an asset
PlatformSetupComponent
Runs the boot scene's SetupComponents (such as SDCardComponent) one at a time, in order, waiting for each to finish, then loads the startup scene
Power
Holds the active power driver; GetCurrent() is nullptr when none is registered
ProjectSettings::DisplaySettings
Display section of project_data.bin, after the FileHeader
ProjectSettings::FileHeader
Header at the start of project_data.bin
ProjectSettings::RuntimeSettings
Runtime section of project_data.bin: target frame rate and startup scene
PropertyBinding
A resolved PropertyRef: where the field lives and what it is
PropertyInfo
Property metadata, one per component type and field
PropertyRef
A picked field of a component on an object
Rect
A half-open pixel rectangle: right and bottom are excluded
Scene
A scene: objects with components, and Deki's basic unit of content
SceneFormat::SceneMsgPackParser
MessagePack parser for compiled scene files, made for embedded targets: it allocates nothing and its recursion depth is capped (kMaxDepth)
SceneFormat::SceneMsgPackWriter
Writes a scene in the compiled MessagePack format (editor only)
SceneSystem
Loads and owns the root scene, the scene that is running, and keeps the persistent objects that outlive scene changes
ScreenAnchor
Keeps its object at a point on the screen, such as the top-left corner, on every screen size and while the camera moves
SettingsRegistry
Registry of project-settings types, which packages can add to
SettingsTypeInfo
One registered project-settings type and its live instance
SetupComponent
Base class for components that need asynchronous setup at boot
Texture2D
An image: width, height, format, pixels and its .dtex file header
Texture2D::Header
Header of a texture file. The file is [Header][pixel data][metadata]
Time
The engine's clock, independent of the platform
UnitProjectSettings
The Units section of the project settings: inspector units and world scale
Vector
Growable array of T whose growth can fail
Vector2
2D vector for positions, directions and scales
Vector3
3D vector for positions, directions, scales and rotations
Editor
AssetCacheContext
Everything a cache handler needs to write the cache files for one asset
AssetData
What an asset's .data sidecar file holds: its GUID and its import settings as JSON, keyed by type name
AssetDatabase
Static asset import and GUID lookup for editor tools, like Unity's AssetDatabase
AssetExportContext
What an asset export encoder is given
AssetExportTarget
The target an asset is stored for: a platform and its screen's format
AssetFileWatcher
OS file watcher that feeds AssetPipeline::Tick()
AssetFileWatcher::Event
One file change under a watched folder
AssetInfo
A discovered asset
AssetPicker
Asset picker popup
AssetPickerEntry
One row in the asset picker: an asset, or a frame of a spritesheet
AssetPipeline
The asset import pipeline, like Unity's: finds assets, gives them GUIDs and compiles them into the cache
AssetTypeEditor
An asset type a package adds: its file extensions, compile step and inspector UI
AssetTypeEditorRegistry
The registered AssetTypeEditors, looked up by type name
AssetTypeHandler
How the editor creates, compiles and inspects one asset type
AssetTypeRegistry
The asset types and file extension categories the editor knows
AtlasFrame
One frame in atlas mode
BuilderDefinition
A build backend's toolchain definition, parsed from JSON
BuilderRegistry
The available firmware builders: the backends packages and plugins contribute, plus builder DLL plugins loaded from ~/.deki-editor/builders/
BuildOptions
Options a build backend takes: logging, and whether to build for the simulator
BuildProgress
State, status text and progress of a running build
BuildStripSettings
A project's choices for stripping unused features and packages from device builds
ChromaKeySettings
Optional chroma-key transparency for a texture
CliTool
A tool a package adds to the editor's command line and MCP server
CliToolContext
What a package's CLI tool may use of the running editor
CMakeGen::ExecutableCMakeOptions
What a build backend chooses for a game built as one ordinary executable
CMakeGen::ExecutableLibrary
A third-party library the executable links, as CMake text the backend writes: the backend resolved it (a prebuilt archive, a source checkout), so only it knows how it is found
CMakeGen::FeatureEntry
One entry of a package's "features": a compile definition the package brings, the component types it provides, and whether it may be left out
CMakeGen::FrameworkDependency
One thing a package needs from a build framework, from package.json: "dependencies": { "<framework id>": [ "bare-name", { "name": "...", ... } ] }
Command
An undoable edit
CommandHistory
The undo/redo history. Commands that arrive close together can merge
ComponentDef
One toolchain component: where it installs, how it is detected and updated
ComponentUsage
Which component types a project uses, and where each one was seen
CompoundCommand
Several commands undone and redone as one
CreateMenuEntry
An item in the hierarchy's right-click "Create Object" menu, registered by a package
CreateMenuRegistry
The items packages add to the hierarchy's "Create Object" menu
CustomEditor
Custom editor for one component type, like Unity's CustomEditor: it can replace the component's Inspector UI and tell the scene view its size
CustomEditorRegistry
Creates and caches the CustomEditor for each component
DeadMemory
Memory that is about to be freed, described as byte ranges
DecodedImage
Decoded image, RGBA8 packed (4 bytes per pixel)
DeployTarget
One thing a build can be deployed to, as the backend enumerates them
DeviceProfile
DeviceProfileRow
One line of the report. Its values are per frame
DialogButtonSpec
One button of SchematicDialogButtons: label, kind and whether it is enabled
DownloadProgress
State and progress of a toolchain download
EditorApplication
The editor's state as seen by EditorWindow and CustomEditor code, like Unity's static editor access: auto& app = EditorApplication::Get(); const char* projectPath = app.GetProjectPath(); Deki::Object* selected = app.GetActiveObject();
EditorAssets
Loads assets onto the GPU for the editor, cached by GUID: uint32_t texId = EditorAssets::Get()->LoadTexture(guid, &w, &h); Deki2D::BitmapFont* font = EditorAssets::Get()->GetBitmapFont(bakedGuid);
EditorExtension
Base class of what packages add to the editor: custom editors, asset types, tools
EditorHttpUtils
HTTP and archive helpers for the whole editor
EditorHttpUtils::ArchiveLink
A symbolic link in an archive: its entry name and the path it points to, as the archive stores them
EditorPaths
Where the editor keeps its files
EditorSettings
The editor's own settings, saved per user
EditorSettings::PackageDepInfo
An external dependency listed in a package.json file
EditorTexture::Backend
What the editor draws textures with
EditorUI
The editor's UI controls and inspector drawing, for CustomEditor code: auto& ui = EditorUI::Get(); ui.DrawDefaultInspector(); ui.PropertyField("speed");
EditorUI::EditCallbacksBytes
Edit callbacks a WidgetBackend calls, with the values as raw bytes
EditorUI::EnumCallbacks
Change, undo and redo callbacks of an enum field or integer slider
EditorUI::FloatCallbacks
Change, undo and redo callbacks of a float field
EditorUI::IntCallbacks
Change, undo and redo callbacks of an integer field
EditorUI::TextCallbacks
Change, undo and redo callbacks of a text field
EditorUI::VecCallbacks
Change, undo and redo callbacks of a vector field, with values as float arrays
EditorUI::WidgetBackend
The ImGui widget implementations, installed once by the editor executable
EditorWindow
Base class for standalone editor windows
EditorWindowMeta
A registered editor window: its title, menu path and factory
FallbackDef
The pinned version and URL a toolchain component installs from
FeatureDecision
Whether one package feature stays in a build, and why
FileInspector
Inspector for a native file type such as .ttf or .png
FileInspectorRegistry
The registered FileInspectors, looked up by file extension
FirmwareBuilderBase
Shared base of build backends: build thread, progress and toolchain handling
GuidCache
Maps asset paths to GUIDs, read from the .data sidecar files and cached in a JSON file
IAssetImporter
Base interface for asset importers
IBuildActivitySink
Where a build backend reports long-running work
ImportResult
Outcome of an asset import: success or error, and the cache file written
IPlatformEditorUI
A builder's own settings UI in the platform editor
ITargetBuilder
A build backend: everything the editor knows about one kind of target
Localization::Language
A language the editor offers: its code and its name in that language
Localization::ScopedPackage
While it lives, Tr and TrLabel look in package's own table first, so text a package's class shows (its component, property and enum names) reads as that package translates it even when the editor or another package translates the same English word differently: deki-fsm's "Add" (an arithmetic operation) is not the editor's "Add" button
Motion::RowHover
List rows that ImGui draws (tree nodes, selectables) with a fading highlight
NodeCanvas
Immediate-mode node-graph widget with pan, zoom, nodes, pins and links
NodeCanvasEvents
What happened this frame. Every field is false or zero unless its event fired
NodeCanvasLink
One link to draw, by node ids and pin indices
NodeCanvasNode
One node to draw. Pin labels are for display; events report pin indices
NodeCanvasPalette
Canvas colours, packed as EditorUI::Rgba does: a<<24 | b<<16 | g<<8 | r
PackageDecision
Whether one package stays in a build, and why
PickerItem
One entry in a SchematicPicker list
PlatformConfig
What the editor knows about a platform: its identity, the framework whose backend builds for it, that backend's settings (carried, not interpreted), its screen, compiler flags, what it offers packages and what it needs from them, and the scene it boots
PlatformOriginStatus
Where an adopted platform came from and how it differs from that source
PlatformRegistry
The available platforms, all loaded from JSON: the project's own, those its packages offer, and board packs
PlatformSyncResult
Result of updating or restoring a platform from its package
PlatformTemplate
A platform a package offers a project, found in its platforms folder
PostInstallDef
The setup command to run after installing a toolchain component, per host OS
SceneView
The scene view's current render context, for gizmo code to read:
SceneViewContext
Everything BeginObject() needs to set up an object's gizmo context
ShaderCompiler
Translates HLSL shaders to the GLSL an OpenGL device runs, through Slang
ShaderCompileRequest
One shader stage to compile: HLSL source, entry point and defines
ShaderStageText
One stage, in both dialects
SpriteFrameData
A sprite frame's pixel rect within its texture, registered by frame GUID and used for rendering
SpriteSettings
Optional sprite metadata baked into the texture file
StripPlan
What a device build keeps and strips: features, packages, defines and source files
SubAssetInfo
An item inside a parent asset, such as a sprite frame or a LOD level
SubComponentDef
One archive downloaded and unpacked as part of a toolchain component
TargetCardInfo
One card's header
TargetContentConflict
A component this target's own content uses, from a package this target cannot have
TexData
A loaded TEX file
TexHeader
TEX file header
TextureImporter
Imports images into the texture cache, and reads and writes TEX files
TextureSettings
An image's storage and filter settings, with per-target overrides
TextureTargetSettings
One target's own values
ToolchainComponent
One toolchain component as the Build panel shows it: status, versions and actions
ToolchainComponentManager
Manages a builder's toolchain components as its BuilderDefinition describes them: detects them, downloads and installs them, and checks for updates
ToolchainVersionInfo
Result of checking a toolchain for a newer version
VersionCheckDef
How to find a toolchain component's latest version: a GitHub release or a fixed one
Generated by
1.18.0