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
AsyncOperation Struct Reference

Handle returned from loadSceneAsync(). Tracks async load progress. More...

#include <SceneManagement.hpp>

Public Attributes

std::atomic< float > progress {0.0f}
 0.0 (start) to 1.0 (complete).
std::atomic< bool > isDone {false}
 True when the scene is fully loaded.
SceneInfo sceneInfo
 Info about the scene being loaded.
std::function< void(const SceneInfo &)> onComplete
 Optional per-operation callback fired when load completes.

Detailed Description

Handle returned from loadSceneAsync(). Tracks async load progress.

Member Data Documentation

◆ isDone

std::atomic<bool> AsyncOperation::isDone {false}

True when the scene is fully loaded.

◆ onComplete

std::function<void(const SceneInfo&)> AsyncOperation::onComplete

Optional per-operation callback fired when load completes.

◆ progress

std::atomic<float> AsyncOperation::progress {0.0f}

0.0 (start) to 1.0 (complete).

◆ sceneInfo

SceneInfo AsyncOperation::sceneInfo

Info about the scene being loaded.


The documentation for this struct was generated from the following file: