Game of Ur 0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
Loading...
Searching...
No Matches
ToyMaker::RenderSystem::LightQueue Class Reference

A subsystem of the RenderSystem; tracks light objects in this ECSWorld scheduled for rendering at the next render step. More...

#include <render_system.hpp>

Inheritance diagram for ToyMaker::RenderSystem::LightQueue:
ToyMaker::System< LightQueue, std::tuple<>, std::tuple< Transform, LightEmissionData > >

Public Member Functions

 LightQueue (std::weak_ptr< ECSWorld > world)
 Constructs a new LightQueue System.
 
void enqueueTo (BaseRenderStage &renderStage, float simulationProgress)
 Adds a light unit to be rendered by this render stage at the next render step.
 

Static Public Member Functions

static std::string getSystemTypeName ()
 Gets the system type string associated with this system.
 

Private Member Functions

void onInitialize () override
 Initializes objects related to this queue.
 

Private Attributes

std::shared_ptr< StaticMeshmSphereMesh { nullptr }
 The light volume associated with each light object, scaled up or down according to its computed radius.
 

Detailed Description

A subsystem of the RenderSystem; tracks light objects in this ECSWorld scheduled for rendering at the next render step.

Constructor & Destructor Documentation

◆ LightQueue()

ToyMaker::RenderSystem::LightQueue::LightQueue ( std::weak_ptr< ECSWorld > world)
inlineexplicit

Constructs a new LightQueue System.

Parameters
world

Member Function Documentation

◆ enqueueTo()

void RenderSystem::LightQueue::enqueueTo ( BaseRenderStage & renderStage,
float simulationProgress )

Adds a light unit to be rendered by this render stage at the next render step.

Parameters
renderStageThe stage the light is being added to.
simulationProgressThe progress from the end of the previous simulation step to the next simulation step, as a number between 1 and 0.

◆ getSystemTypeName()

static std::string ToyMaker::RenderSystem::LightQueue::getSystemTypeName ( )
inlinestatic

Gets the system type string associated with this system.

Returns
std::string The system type string associated with this system.

The documentation for this class was generated from the following files: