|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Batch of instances to be drawn in a Renderer3D frame. More...
#include <GREM/graphics_3d/Instances3D.hpp>
Public Member Functions | |
| Instances3D (Device &device, Renderer3D &renderer3D) | |
| Construct a batch of instances. | |
| void | clear () |
| Clear the batch of all instances. | |
| void | putPBRModelInstance (const Model3D &model, resource::Model::TransformationView transformation, const ModelInstance3D &instance={}) |
| Add a 3D model instance to be rendered using the default PBR shader. | |
| void | putPBRModelInstance (const Model3D &model, const mat4 &transformation, const ModelInstance3D &instance={}) |
| Add a 3D model instance to be rendered in its default bind pose using the default PBR shader. | |
| void | putPBRModelInstance (const Model3D &model, const mat4 &transformation, resource::Model::PoseView pose, const ModelInstance3D &instance) |
| Add a 3D model instance to be rendered in a specific local pose using the default PBR shader. | |
| void | putPBRModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const ModelInstance3D > instances) |
| Add a list of instances of a 3D model to be rendered using the default PBR shader. | |
| void | putPBRModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, const ModelInstance3D &instance) |
| Add a list of instances of a 3D model to be rendered using the default PBR shader. | |
| void | putPBRModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations) |
| Add a list of instances of a 3D model to be rendered using the default PBR shader. | |
| void | putVisiblePBRModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const ModelInstance3D > instances, StridedSpan< const bool > instancesVisible) |
| Add a list of instances of a 3D model to be rendered using the default PBR shader if they are in a visible set. | |
| void | putVisiblePBRModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, const ModelInstance3D &instance, StridedSpan< const bool > instancesVisible) |
| Add a list of instances of a 3D model to be rendered using the default PBR shader if they are in a visible set. | |
| void | putVisiblePBRModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const bool > instancesVisible) |
| Add a list of instances of a 3D model to be rendered using the default PBR shader if they are in a visible set. | |
| void | putHDRPBRModelInstance (const Model3D &model, resource::Model::TransformationView transformation, const ModelInstance3D &instance={}) |
| Add a 3D model instance to be rendered using the default HDR PBR shader. | |
| void | putHDRPBRModelInstance (const Model3D &model, const mat4 &transformation, const ModelInstance3D &instance={}) |
| Add a 3D model instance to be rendered in its default bind pose using the default HDR PBR shader. | |
| void | putHDRPBRModelInstance (const Model3D &model, const mat4 &transformation, resource::Model::PoseView pose, const ModelInstance3D &instance) |
| Add a 3D model instance to be rendered in a specific local pose using the default HDR PBR shader. | |
| void | putHDRPBRModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const ModelInstance3D > instances) |
| Add a list of instances of a 3D model to be rendered using the default HDR PBR shader. | |
| void | putHDRPBRModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, const ModelInstance3D &instance) |
| Add a list of instances of a 3D model to be rendered using the default HDR PBR shader. | |
| void | putHDRPBRModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations) |
| Add a list of instances of a 3D model to be rendered using the default HDR PBR shader. | |
| void | putVisibleHDRPBRModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const ModelInstance3D > instances, StridedSpan< const bool > instancesVisible) |
| Add a list of instances of a 3D model to be rendered using the default HDR PBR shader if they are in a visible set. | |
| void | putVisibleHDRPBRModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, const ModelInstance3D &instance, StridedSpan< const bool > instancesVisible) |
| Add a list of instances of a 3D model to be rendered using the default HDR PBR shader if they are in a visible set. | |
| void | putVisibleHDRPBRModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const bool > instancesVisible) |
| Add a list of instances of a 3D model to be rendered using the default HDR PBR shader if they are in a visible set. | |
| void | putUnlitModelInstance (const Model3D &model, resource::Model::TransformationView transformation, const ModelInstance3D &instance={}) |
| Add a 3D model instance to be rendered using the default unlit shader. | |
| void | putUnlitModelInstance (const Model3D &model, const mat4 &transformation, const ModelInstance3D &instance={}) |
| Add a 3D model instance to be rendered in its default bind pose using the default unlit shader. | |
| void | putUnlitModelInstance (const Model3D &model, const mat4 &transformation, resource::Model::PoseView pose, const ModelInstance3D &instance={}) |
| Add a 3D model instance to be rendered in a specific local pose using the default unlit shader. | |
| void | putUnlitModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const ModelInstance3D > instances) |
| Add a list of instances of a 3D model to be rendered using the default unlit shader. | |
| void | putUnlitModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, const ModelInstance3D &instance) |
| Add a list of instances of a 3D model to be rendered using the default unlit shader. | |
| void | putUnlitModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations) |
| Add a list of instances of a 3D model to be rendered using the default unlit shader. | |
| void | putVisibleUnlitModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const ModelInstance3D > instances, StridedSpan< const bool > instancesVisible) |
| Add a list of instances of a 3D model to be rendered using the default unlit shader if they are in a visible set. | |
| void | putVisibleUnlitModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, const ModelInstance3D &instance, StridedSpan< const bool > instancesVisible) |
| Add a list of instances of a 3D model to be rendered using the default unlit shader if they are in a visible set. | |
| void | putVisibleUnlitModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const bool > instancesVisible) |
| Add a list of instances of a 3D model to be rendered using the default unlit shader if they are in a visible set. | |
| void | putHDRUnlitModelInstance (const Model3D &model, resource::Model::TransformationView transformation, const ModelInstance3D &instance={}) |
| Add a 3D model instance to be rendered using the default HDR unlit shader. | |
| void | putHDRUnlitModelInstance (const Model3D &model, const mat4 &transformation, const ModelInstance3D &instance={}) |
| Add a 3D model instance to be rendered in its default bind pose using the default HDR unlit shader. | |
| void | putHDRUnlitModelInstance (const Model3D &model, const mat4 &transformation, resource::Model::PoseView pose, const ModelInstance3D &instance={}) |
| Add a 3D model instance to be rendered in a specific local pose using the default HDR unlit shader. | |
| void | putHDRUnlitModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const ModelInstance3D > instances) |
| Add a list of instances of a 3D model to be rendered using the default HDR unlit shader. | |
| void | putHDRUnlitModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, const ModelInstance3D &instance) |
| Add a list of instances of a 3D model to be rendered using the default HDR unlit shader. | |
| void | putHDRUnlitModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations) |
| Add a list of instances of a 3D model to be rendered using the default HDR unlit shader. | |
| void | putVisibleHDRUnlitModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const ModelInstance3D > instances, StridedSpan< const bool > instancesVisible) |
| Add a list of instances of a 3D model to be rendered using the default HDR unlit shader if they are in a visible set. | |
| void | putVisibleHDRUnlitModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, const ModelInstance3D &instance, StridedSpan< const bool > instancesVisible) |
| Add a list of instances of a 3D model to be rendered using the default HDR unlit shader if they are in a visible set. | |
| void | putVisibleHDRUnlitModelInstances (const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const bool > instancesVisible) |
| Add a list of instances of a 3D model to be rendered using the default HDR unlit shader if they are in a visible set. | |
| void | putShadedModelInstance (auto &&shaderPipelineSelector, const Model3D &model, resource::Model::TransformationView transformation, const ModelInstance3D &instance={}) |
| Add a 3D model instance to be rendered using a specific shader pipeline. | |
| void | putShadedModelInstance (auto &&shaderPipelineSelector, const Model3D &model, const mat4 &transformation, const ModelInstance3D &instance={}) |
| Add a 3D model instance to be rendered in its default bind pose using a specific shader pipeline. | |
| void | putShadedModelInstance (auto &&shaderPipelineSelector, const Model3D &model, const mat4 &transformation, resource::Model::PoseView pose, const ModelInstance3D &instance={}) |
| Add a 3D model instance to be rendered in a specific local pose using a specific shader pipeline. | |
| void | putShadedModelInstances (auto &&shaderPipelineSelector, const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const ModelInstance3D > instances) |
| Add a list of instances of a 3D model to be rendered using a specific shader pipeline. | |
| void | putShadedModelInstances (auto &&shaderPipelineSelector, const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, const ModelInstance3D &instance) |
| Add a list of instances of a 3D model to be rendered using a specific shader pipeline. | |
| void | putShadedModelInstances (auto &&shaderPipelineSelector, const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations) |
| Add a list of instances of a 3D model to be rendered using a specific shader pipeline. | |
| void | putVisibleShadedModelInstances (auto &&shaderPipelineSelector, const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const ModelInstance3D > instances, StridedSpan< const bool > instancesVisible) |
| Add a list of instances of a 3D model to be rendered using a specific shader pipeline if they are in a visible set. | |
| void | putVisibleShadedModelInstances (auto &&shaderPipelineSelector, const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, const ModelInstance3D &instance, StridedSpan< const bool > instancesVisible) |
| Add a list of instances of a 3D model to be rendered using a specific shader pipeline if they are in a visible set. | |
| void | putVisibleShadedModelInstances (auto &&shaderPipelineSelector, const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const bool > instancesVisible) |
| Add a list of instances of a 3D model to be rendered using a specific shader pipeline if they are in a visible set. | |
| void | putFlatModelInstance (const Model2D &model, const FlatModelInstance3D &instance) |
| Add a flat 2D model instance to be rendered using a plain 2D model shader. | |
| void | putShadedFlatModelInstance (const Model2D::ShaderPipeline &shaderPipeline, const Model2D &model, const FlatModelInstance3D &instance) |
| Add a flat 2D model instance to be rendered using a specific shader pipeline. | |
| void | putTriangleInstance (const TriangleInstance3D &instance) |
| Add a triangle instance to be rendered using a plain 2D model shader. | |
| void | putShadedTriangleInstance (const Model2D::ShaderPipeline &shaderPipeline, const TriangleInstance3D &instance) |
| Add a triangle instance to be rendered using a specific shader pipeline. | |
| void | putQuadInstance (const QuadInstance3D &instance) |
| Add a quad instance to be rendered using a plain 2D model shader. | |
| void | putShadedQuadInstance (const Model2D::ShaderPipeline &shaderPipeline, const QuadInstance3D &instance) |
| Add a quad instance to be rendered using a specific shader pipeline. | |
| void | putSpriteInstance (const SpriteAtlas &spriteAtlas, SpriteID spriteID, const SpriteInstance3D &instance) |
| Add a sprite instance to be rendered using a plain 2D model shader. | |
| void | putShadedSpriteInstance (const Model2D::ShaderPipeline &shaderPipeline, const SpriteAtlas &spriteAtlas, SpriteID spriteID, const SpriteInstance3D &instance) |
| Add a sprite instance to be rendered using a specific shader pipeline. | |
| void | putTextInstance (const Text2D &text, const TextInstance3D &instance) |
| Add a 3D text instance to be rendered using a plain 3D text shader. | |
| void | putShadedTextInstance (const Model2D::ShaderPipeline &shaderPipeline, const Text2D &text, const TextInstance3D &instance) |
| Add a 3D text instance to be rendered using a specific shader pipeline. | |
| void | putTextStringInstance (Font2D &font, UTF8StringView string, const TextStringInstance3D &instance) |
| Add a 3D text string instance to be rendered using a plain 3D text shader. | |
| void | putShadedTextStringInstance (const Model2D::ShaderPipeline &shaderPipeline, Font2D &font, UTF8StringView string, const TextStringInstance3D &instance) |
| Add a 3D text string instance to be rendered using a specific shader pipeline. | |
| void | putTextStringInstance (Font2D &font, StringView string, const TextStringInstance3D &instance) |
| Add a 3D text string instance to be rendered using a plain 3D text shader. | |
| void | putShadedTextStringInstance (const Model2D::ShaderPipeline &shaderPipeline, Font2D &font, StringView string, const TextStringInstance3D &instance) |
| Add a 3D text string instance to be rendered using a specific shader pipeline. | |
Batch of instances to be drawn in a Renderer3D frame.
|
inline |
Construct a batch of instances.
| device | device to create the batch for. Must outlive the batch. |
| renderer3D | renderer to create the batch for. Must be associated with the given device. Must outlive the batch. |
| graphics::Error | if resource creation failed. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
|
inline |
Clear the batch of all instances.
| graphics::Error | if resource creation failed. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putPBRModelInstance | ( | const Model3D & | model, |
| resource::Model::TransformationView | transformation, | ||
| const ModelInstance3D & | instance = {} ) |
Add a 3D model instance to be rendered using the default PBR shader.
| model | model to draw. |
| transformation | transformation of the model instance. Must contain at least as many joints and morph target weights as the model. |
| instance | configuration of the model instance to draw, see ModelInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putPBRModelInstance | ( | const Model3D & | model, |
| const mat4 & | transformation, | ||
| const ModelInstance3D & | instance = {} ) |
Add a 3D model instance to be rendered in its default bind pose using the default PBR shader.
| model | model to draw. |
| transformation | transformation of the model instance. |
| instance | configuration of the model instance to draw, see ModelInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putPBRModelInstance | ( | const Model3D & | model, |
| const mat4 & | transformation, | ||
| resource::Model::PoseView | pose, | ||
| const ModelInstance3D & | instance ) |
Add a 3D model instance to be rendered in a specific local pose using the default PBR shader.
| model | model to draw. |
| transformation | transformation of the model instance. |
| pose | local pose to draw the model in. The number of joints in the pose must match the number of joints in the model. |
| instance | configuration of the model instance to draw, see ModelInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putPBRModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations, | ||
| StridedSpan< const ModelInstance3D > | instances ) |
Add a list of instances of a 3D model to be rendered using the default PBR shader.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instances | configuration of each model instance to draw, see ModelInstance3D. Must have the same size as transformations. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putPBRModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations, | ||
| const ModelInstance3D & | instance ) |
Add a list of instances of a 3D model to be rendered using the default PBR shader.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instance | configuration of the model instances to draw, see ModelInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putPBRModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations ) |
Add a list of instances of a 3D model to be rendered using the default PBR shader.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putVisiblePBRModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations, | ||
| StridedSpan< const ModelInstance3D > | instances, | ||
| StridedSpan< const bool > | instancesVisible ) |
Add a list of instances of a 3D model to be rendered using the default PBR shader if they are in a visible set.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instances | configuration of each model instance to draw, see ModelInstance3D. Must have the same size as transformations. |
| instancesVisible | visibility of each instance. Must have the same size as transformations. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putVisiblePBRModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations, | ||
| const ModelInstance3D & | instance, | ||
| StridedSpan< const bool > | instancesVisible ) |
Add a list of instances of a 3D model to be rendered using the default PBR shader if they are in a visible set.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instance | configuration of the model instances to draw, see ModelInstance3D. |
| instancesVisible | visibility of each instance. Must have the same size as transformations. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putVisiblePBRModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations, | ||
| StridedSpan< const bool > | instancesVisible ) |
Add a list of instances of a 3D model to be rendered using the default PBR shader if they are in a visible set.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instancesVisible | visibility of each instance. Must have the same size as transformations. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putHDRPBRModelInstance | ( | const Model3D & | model, |
| resource::Model::TransformationView | transformation, | ||
| const ModelInstance3D & | instance = {} ) |
Add a 3D model instance to be rendered using the default HDR PBR shader.
| model | model to draw. |
| transformation | transformation of the model instance. Must contain at least as many joints and morph target weights as the model. |
| instance | configuration of the model instance to draw, see ModelInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putHDRPBRModelInstance | ( | const Model3D & | model, |
| const mat4 & | transformation, | ||
| const ModelInstance3D & | instance = {} ) |
Add a 3D model instance to be rendered in its default bind pose using the default HDR PBR shader.
| model | model to draw. |
| transformation | transformation of the model instance. |
| instance | configuration of the model instance to draw, see ModelInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putHDRPBRModelInstance | ( | const Model3D & | model, |
| const mat4 & | transformation, | ||
| resource::Model::PoseView | pose, | ||
| const ModelInstance3D & | instance ) |
Add a 3D model instance to be rendered in a specific local pose using the default HDR PBR shader.
| model | model to draw. |
| transformation | transformation of the model instance. |
| pose | local pose to draw the model in. The number of joints in the pose must match the number of joints in the model. |
| instance | configuration of the model instance to draw, see ModelInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putHDRPBRModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations, | ||
| StridedSpan< const ModelInstance3D > | instances ) |
Add a list of instances of a 3D model to be rendered using the default HDR PBR shader.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instances | configuration of each model instance to draw, see ModelInstance3D. Must have the same size as transformations. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putHDRPBRModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations, | ||
| const ModelInstance3D & | instance ) |
Add a list of instances of a 3D model to be rendered using the default HDR PBR shader.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instance | configuration of the model instances to draw, see ModelInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putHDRPBRModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations ) |
Add a list of instances of a 3D model to be rendered using the default HDR PBR shader.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putVisibleHDRPBRModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations, | ||
| StridedSpan< const ModelInstance3D > | instances, | ||
| StridedSpan< const bool > | instancesVisible ) |
Add a list of instances of a 3D model to be rendered using the default HDR PBR shader if they are in a visible set.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instances | configuration of each model instance to draw, see ModelInstance3D. Must have the same size as transformations. |
| instancesVisible | visibility of each instance. Must have the same size as transformations. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putVisibleHDRPBRModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations, | ||
| const ModelInstance3D & | instance, | ||
| StridedSpan< const bool > | instancesVisible ) |
Add a list of instances of a 3D model to be rendered using the default HDR PBR shader if they are in a visible set.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instance | configuration of the model instances to draw, see ModelInstance3D. |
| instancesVisible | visibility of each instance. Must have the same size as transformations. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putVisibleHDRPBRModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations, | ||
| StridedSpan< const bool > | instancesVisible ) |
Add a list of instances of a 3D model to be rendered using the default HDR PBR shader if they are in a visible set.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instancesVisible | visibility of each instance. Must have the same size as transformations. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putUnlitModelInstance | ( | const Model3D & | model, |
| resource::Model::TransformationView | transformation, | ||
| const ModelInstance3D & | instance = {} ) |
Add a 3D model instance to be rendered using the default unlit shader.
| model | model to draw. |
| transformation | transformation of the model instance. Must contain at least as many joints and morph target weights as the model. |
| instance | configuration of the model instance to draw, see ModelInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putUnlitModelInstance | ( | const Model3D & | model, |
| const mat4 & | transformation, | ||
| const ModelInstance3D & | instance = {} ) |
Add a 3D model instance to be rendered in its default bind pose using the default unlit shader.
| model | model to draw. |
| transformation | transformation of the model instance. |
| instance | configuration of the model instance to draw, see ModelInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putUnlitModelInstance | ( | const Model3D & | model, |
| const mat4 & | transformation, | ||
| resource::Model::PoseView | pose, | ||
| const ModelInstance3D & | instance = {} ) |
Add a 3D model instance to be rendered in a specific local pose using the default unlit shader.
| model | model to draw. |
| transformation | transformation of the model instance. |
| pose | local pose to draw the model in. The number of joints in the pose must match the number of joints in the model. |
| instance | configuration of the model instance to draw, see ModelInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putUnlitModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations, | ||
| StridedSpan< const ModelInstance3D > | instances ) |
Add a list of instances of a 3D model to be rendered using the default unlit shader.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instances | configuration of each instance to draw, see ModelInstance3D. Must have the same size as transformations. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putUnlitModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations, | ||
| const ModelInstance3D & | instance ) |
Add a list of instances of a 3D model to be rendered using the default unlit shader.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instance | configuration of the instances to draw, see ModelInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putUnlitModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations ) |
Add a list of instances of a 3D model to be rendered using the default unlit shader.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putVisibleUnlitModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations, | ||
| StridedSpan< const ModelInstance3D > | instances, | ||
| StridedSpan< const bool > | instancesVisible ) |
Add a list of instances of a 3D model to be rendered using the default unlit shader if they are in a visible set.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instances | configuration of each instance to draw, see ModelInstance3D. Must have the same size as transformations. |
| instancesVisible | visibility of each instance. Must have the same size as transformations. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putVisibleUnlitModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations, | ||
| const ModelInstance3D & | instance, | ||
| StridedSpan< const bool > | instancesVisible ) |
Add a list of instances of a 3D model to be rendered using the default unlit shader if they are in a visible set.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instance | configuration of the instances to draw, see ModelInstance3D. |
| instancesVisible | visibility of each instance. Must have the same size as transformations. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putVisibleUnlitModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations, | ||
| StridedSpan< const bool > | instancesVisible ) |
Add a list of instances of a 3D model to be rendered using the default unlit shader if they are in a visible set.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instancesVisible | visibility of each instance. Must have the same size as transformations. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putHDRUnlitModelInstance | ( | const Model3D & | model, |
| resource::Model::TransformationView | transformation, | ||
| const ModelInstance3D & | instance = {} ) |
Add a 3D model instance to be rendered using the default HDR unlit shader.
| model | model to draw. |
| transformation | transformation of the model instance. Must contain at least as many joints and morph target weights as the model. |
| instance | configuration of the model instance to draw, see ModelInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putHDRUnlitModelInstance | ( | const Model3D & | model, |
| const mat4 & | transformation, | ||
| const ModelInstance3D & | instance = {} ) |
Add a 3D model instance to be rendered in its default bind pose using the default HDR unlit shader.
| model | model to draw. |
| transformation | transformation of the model instance. |
| instance | configuration of the model instance to draw, see ModelInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putHDRUnlitModelInstance | ( | const Model3D & | model, |
| const mat4 & | transformation, | ||
| resource::Model::PoseView | pose, | ||
| const ModelInstance3D & | instance = {} ) |
Add a 3D model instance to be rendered in a specific local pose using the default HDR unlit shader.
| model | model to draw. |
| transformation | transformation of the model instance. |
| pose | local pose to draw the model in. The number of joints in the pose must match the number of joints in the model. |
| instance | configuration of the model instance to draw, see ModelInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putHDRUnlitModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations, | ||
| StridedSpan< const ModelInstance3D > | instances ) |
Add a list of instances of a 3D model to be rendered using the default HDR unlit shader.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instances | configuration of each model instance to draw, see ModelInstance3D. Must have the same size as transformations. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putHDRUnlitModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations, | ||
| const ModelInstance3D & | instance ) |
Add a list of instances of a 3D model to be rendered using the default HDR unlit shader.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instance | configuration of the model instances to draw, see ModelInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putHDRUnlitModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations ) |
Add a list of instances of a 3D model to be rendered using the default HDR unlit shader.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putVisibleHDRUnlitModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations, | ||
| StridedSpan< const ModelInstance3D > | instances, | ||
| StridedSpan< const bool > | instancesVisible ) |
Add a list of instances of a 3D model to be rendered using the default HDR unlit shader if they are in a visible set.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instances | configuration of each model instance to draw, see ModelInstance3D. Must have the same size as transformations. |
| instancesVisible | visibility of each instance. Must have the same size as transformations. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putVisibleHDRUnlitModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations, | ||
| const ModelInstance3D & | instance, | ||
| StridedSpan< const bool > | instancesVisible ) |
Add a list of instances of a 3D model to be rendered using the default HDR unlit shader if they are in a visible set.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instance | configuration of the model instances to draw, see ModelInstance3D. |
| instancesVisible | visibility of each instance. Must have the same size as transformations. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putVisibleHDRUnlitModelInstances | ( | const Model3D & | model, |
| StridedSpan< const resource::Model::TransformationView > | transformations, | ||
| StridedSpan< const bool > | instancesVisible ) |
Add a list of instances of a 3D model to be rendered using the default HDR unlit shader if they are in a visible set.
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instancesVisible | visibility of each instance. Must have the same size as transformations. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
|
inline |
Add a 3D model instance to be rendered using a specific shader pipeline.
| shaderPipelineSelector | function that returns the shader pipeline to render each mesh of the model with, given its shader configuration. |
| model | model to draw. |
| transformation | transformation of the model instance. Must contain at least as many joints and morph target weights as the model. |
| instance | configuration of the model instance to draw, see ModelInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
|
inline |
Add a 3D model instance to be rendered in its default bind pose using a specific shader pipeline.
| shaderPipelineSelector | function that returns the shader pipeline to render each mesh of the model with, given its mesh configuration. |
| model | model to draw. |
| transformation | transformation of the model instance. |
| instance | configuration of the model instance to draw, see ModelInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
|
inline |
Add a 3D model instance to be rendered in a specific local pose using a specific shader pipeline.
| shaderPipelineSelector | function that returns the shader pipeline to render each mesh of the model with, given its mesh configuration. |
| model | model to draw. |
| transformation | transformation of the model instance. |
| pose | local pose to draw the model in. The number of joints in the pose must match the number of joints in the model. |
| instance | configuration of the model instance to draw, see ModelInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
|
inline |
Add a list of instances of a 3D model to be rendered using a specific shader pipeline.
| shaderPipelineSelector | function that returns the shader pipeline to render each mesh of the model with, given its shader configuration. |
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instances | configuration of each model instance to draw, see ModelInstance3D. Must have the same size as transformations. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
|
inline |
Add a list of instances of a 3D model to be rendered using a specific shader pipeline.
| shaderPipelineSelector | function that returns the shader pipeline to render each mesh of the model with, given its shader configuration. |
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instance | configuration of the instances to draw, see ModelInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
|
inline |
Add a list of instances of a 3D model to be rendered using a specific shader pipeline.
| shaderPipelineSelector | function that returns the shader pipeline to render each mesh of the model with, given its shader configuration. |
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
|
inline |
Add a list of instances of a 3D model to be rendered using a specific shader pipeline if they are in a visible set.
| shaderPipelineSelector | function that returns the shader pipeline to render each mesh of the model with, given its shader configuration. |
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instances | configuration of each model instance to draw, see ModelInstance3D. Must have the same size as transformations. |
| instancesVisible | visibility of each instance. Must have the same size as transformations. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
|
inline |
Add a list of instances of a 3D model to be rendered using a specific shader pipeline if they are in a visible set.
| shaderPipelineSelector | function that returns the shader pipeline to render each mesh of the model with, given its shader configuration. |
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instance | configuration of the model instances to draw, see ModelInstance3D. |
| instancesVisible | visibility of each instance. Must have the same size as transformations. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
|
inline |
Add a list of instances of a 3D model to be rendered using a specific shader pipeline if they are in a visible set.
| shaderPipelineSelector | function that returns the shader pipeline to render each mesh of the model with, given its shader configuration. |
| model | model to draw. |
| transformations | transformation of each model instance. Each must contain at least as many joints and morph target weights as the model. |
| instancesVisible | visibility of each instance. Must have the same size as transformations. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putFlatModelInstance | ( | const Model2D & | model, |
| const FlatModelInstance3D & | instance ) |
Add a flat 2D model instance to be rendered using a plain 2D model shader.
| model | model to draw. |
| instance | configuration of the flat model instance to draw, see FlatModelInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putShadedFlatModelInstance | ( | const Model2D::ShaderPipeline & | shaderPipeline, |
| const Model2D & | model, | ||
| const FlatModelInstance3D & | instance ) |
Add a flat 2D model instance to be rendered using a specific shader pipeline.
| shaderPipeline | shader pipeline to render the model with. |
| model | model to draw. |
| instance | configuration of the flat model instance to draw, see FlatModelInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putTriangleInstance | ( | const TriangleInstance3D & | instance | ) |
Add a triangle instance to be rendered using a plain 2D model shader.
| instance | configuration of the triangle instance to draw, see TriangleInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putShadedTriangleInstance | ( | const Model2D::ShaderPipeline & | shaderPipeline, |
| const TriangleInstance3D & | instance ) |
Add a triangle instance to be rendered using a specific shader pipeline.
| shaderPipeline | shader pipeline to render the triangle with. |
| instance | configuration of the triangle instance to draw, see TriangleInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putQuadInstance | ( | const QuadInstance3D & | instance | ) |
Add a quad instance to be rendered using a plain 2D model shader.
| instance | configuration of the quad instance to draw, see QuadInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putShadedQuadInstance | ( | const Model2D::ShaderPipeline & | shaderPipeline, |
| const QuadInstance3D & | instance ) |
Add a quad instance to be rendered using a specific shader pipeline.
| shaderPipeline | shader pipeline to render the quad with. |
| instance | configuration of the quad instance to draw, see QuadInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putSpriteInstance | ( | const SpriteAtlas & | spriteAtlas, |
| SpriteID | spriteID, | ||
| const SpriteInstance3D & | instance ) |
Add a sprite instance to be rendered using a plain 2D model shader.
| spriteAtlas | sprite atlas to fetch the sprite image from. |
| spriteID | identifier of the sprite in the atlas to draw. Must be a valid sprite identifier obtained from the given atlas. |
| instance | configuration of the sprite instance to draw, see SpriteInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putShadedSpriteInstance | ( | const Model2D::ShaderPipeline & | shaderPipeline, |
| const SpriteAtlas & | spriteAtlas, | ||
| SpriteID | spriteID, | ||
| const SpriteInstance3D & | instance ) |
Add a sprite instance to be rendered using a specific shader pipeline.
| shaderPipeline | shader pipeline to render the sprite with. |
| spriteAtlas | sprite atlas to fetch the sprite image from. |
| spriteID | identifier of the sprite in the atlas to draw. Must be a valid sprite identifier obtained from the given atlas. |
| instance | configuration of the sprite instance to draw, see SpriteInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putTextInstance | ( | const Text2D & | text, |
| const TextInstance3D & | instance ) |
Add a 3D text instance to be rendered using a plain 3D text shader.
| text | shaped text to draw. |
| instance | configuration of the text instance to draw, see TextInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putShadedTextInstance | ( | const Model2D::ShaderPipeline & | shaderPipeline, |
| const Text2D & | text, | ||
| const TextInstance3D & | instance ) |
Add a 3D text instance to be rendered using a specific shader pipeline.
| shaderPipeline | shader pipeline to render the text with. |
| text | shaped text to draw. |
| instance | configuration of the text instance to draw, see TextInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putTextStringInstance | ( | Font2D & | font, |
| UTF8StringView | string, | ||
| const TextStringInstance3D & | instance ) |
Add a 3D text string instance to be rendered using a plain 3D text shader.
| font | font from which to shape the text. |
| string | UTF-8-encoded string to shape the text from. |
| instance | configuration of the text string instance to draw, see TextStringInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putShadedTextStringInstance | ( | const Model2D::ShaderPipeline & | shaderPipeline, |
| Font2D & | font, | ||
| UTF8StringView | string, | ||
| const TextStringInstance3D & | instance ) |
Add a 3D text string instance to be rendered using a specific shader pipeline.
| shaderPipeline | shader pipeline to render the text with. |
| font | font from which to shape the text. |
| string | UTF-8-encoded string to shape the text from. |
| instance | configuration of the text string instance to draw, see TextStringInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putTextStringInstance | ( | Font2D & | font, |
| StringView | string, | ||
| const TextStringInstance3D & | instance ) |
Add a 3D text string instance to be rendered using a plain 3D text shader.
| font | font from which to shape the text. |
| string | string to shape the text from, which will be interpreted as being UTF-8-encoded. |
| instance | configuration of the text string instance to draw, see TextStringInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::Instances3D::putShadedTextStringInstance | ( | const Model2D::ShaderPipeline & | shaderPipeline, |
| Font2D & | font, | ||
| StringView | string, | ||
| const TextStringInstance3D & | instance ) |
Add a 3D text string instance to be rendered using a specific shader pipeline.
| shaderPipeline | shader pipeline to render the text with. |
| font | font from which to shape the text. |
| string | string to shape the text from, which will be interpreted as being UTF-8-encoded. |
| instance | configuration of the text string instance to draw, see TextStringInstance3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |