GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::graphics::Instances2DView Struct Reference

View over a batch of instances to be drawn in a Renderer2D frame. More...

#include <GREM/graphics_2d/Instances2D.hpp>

Public Member Functions

 Instances2DView (const Instances2D &instances, const Instances2DFilter &filter={})
 Construct an instance batch view.
 Instances2DView (const Instances2D &instances, const Model2D::ShaderPipeline &shaderPipelineOverride, const Instances2DFilter &filter={})
 Construct an instance batch view with a shader override.

Public Attributes

const Instances2D * instances
 Non-owning read-only pointer to the batch of instances.
SharedPointer< ShaderPipelineImplementation > shaderPipelineOverrideHandle {}
 Shader pipeline override to use, or nullptr to not use a shader override.
Instances2DFilter filter
 Filter parameters that determine which instances to draw.

Detailed Description

View over a batch of instances to be drawn in a Renderer2D frame.

Constructor & Destructor Documentation

◆ Instances2DView() [1/2]

grem::graphics::Instances2DView::Instances2DView ( const Instances2D & instances,
const Instances2DFilter & filter = {} )
inline

Construct an instance batch view.

Parameters
instancesinstances to reference. Must outlive the view.
filterfilter parameters, see Instances2DFilter.

◆ Instances2DView() [2/2]

grem::graphics::Instances2DView::Instances2DView ( const Instances2D & instances,
const Model2D::ShaderPipeline & shaderPipelineOverride,
const Instances2DFilter & filter = {} )
inline

Construct an instance batch view with a shader override.

Parameters
instancesinstances to reference. Must outlive the view.
shaderPipelineOverrideshader pipeline override to use.
filterfilter parameters, see Instances2DFilter.

Member Data Documentation

◆ instances

const Instances2D* grem::graphics::Instances2DView::instances

Non-owning read-only pointer to the batch of instances.

Must not be nullptr.

◆ shaderPipelineOverrideHandle

SharedPointer<ShaderPipelineImplementation> grem::graphics::Instances2DView::shaderPipelineOverrideHandle {}

Shader pipeline override to use, or nullptr to not use a shader override.

◆ filter

Instances2DFilter grem::graphics::Instances2DView::filter

Filter parameters that determine which instances to draw.


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