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::OpaqueQueue Class Reference

A subsystem of the RenderSystem; tracks opaque and alpha-tested models present in this ECSWorld to be rendered at the next render step. More...

#include <render_system.hpp>

Inheritance diagram for ToyMaker::RenderSystem::OpaqueQueue:
ToyMaker::System< OpaqueQueue, std::tuple<>, std::tuple< Transform, std::shared_ptr< StaticModel > > >

Public Member Functions

 OpaqueQueue (std::weak_ptr< ECSWorld > world)
 Constructs a new OpaqueQueue System.
 
void enqueueTo (BaseRenderStage &renderStage, float simulationProgress)
 Adds opaque render units to a render stage to be rendered this frame.
 

Static Public Member Functions

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

Detailed Description

A subsystem of the RenderSystem; tracks opaque and alpha-tested models present in this ECSWorld to be rendered at the next render step.

Constructor & Destructor Documentation

◆ OpaqueQueue()

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

Constructs a new OpaqueQueue System.

Parameters
worldThe world this queue will belong to.

Member Function Documentation

◆ enqueueTo()

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

Adds opaque render units to a render stage to be rendered this frame.

Parameters
renderStageThe render stage being added to.
simulationProgressThe progress towards the next simulation step after the previous one, represented as a number between 0 and 1.

◆ getSystemTypeName()

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

Gets the system type string associated with this System.

Returns
std::string This queue's system type string.

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