vkmEngine 1.0.15
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::FrameContext Struct Reference

Per-frame state bundle passed to every system. More...

#include <system.h>

Public Attributes

RenderSettings & projectRender
const HostView * hostView = nullptr
 From CameraControllerSystem.
const Visibility * visibility = nullptr
 From VisibilitySystem.
const PoseBuffer * poses = nullptr
 From SkeletalAnimationSystem.
const UIDrawData * ui = nullptr
 From UISystem.
const SplashFrame * splash = nullptr
 From SplashSystem.
const LiveParticles * particles = nullptr
 From ParticleSystem.
const OceanData * ocean = nullptr
 From OceanSystem.
const TerrainFrame * terrain = nullptr
 From TerrainSystem.

Detailed Description

Per-frame state bundle passed to every system.

References are engine-owned services, valid for the session. Pointers are per-frame products, null until their producer has run this frame, so a consumer is registered after its producer (in setupEngineApp).

Simulation state reads getSimDelta() and getFixedStep(); presentation and services run every frame regardless, so a paused game keeps its music and menu.

A null hostView means render through the scene's active camera.

Member Data Documentation

◆ projectRender

RenderSettings& Vkm::Engine::FrameContext::projectRender

The project's render settings, which a quality tier is built over; the host keeps them (Engine::setProjectRenderSettings, EditorSystem::update).


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