15#ifndef MESHRENDERINGSTAGE_H_6014714286
16#define MESHRENDERINGSTAGE_H_6014714286
71 const static unsigned int DEFAULT_ROLE_MESH = 0;
77 const static unsigned int DEFAULT_ROLE_MATERIAL = 1;
109template<
typename RenderableCompare >
136template<
typename RenderableCompare >
144template<
typename RenderableCompare >
149 renderTask =
nullptr;
153template<
typename RenderableCompare >
158 this->videoResource( material ).activate(
rs );
166 this->videoResource( mesh ).get().render();
Defines LibCarna::base::GeometryStage.
Defines LibCarna::base::ManagedMesh.
Defines LibCarna::base::Material.
Defines LibCarna::base::RenderState.
Defines LibCarna::base::RenderTask.
Defines LibCarna::base::Renderable.
Represents an association.
Partially implements a rendering stage that uses at least one render queue for rendering geometry fro...
virtual void renderPass(const math::Matrix4f &viewTransform, RenderTask &rt, const Viewport &vp) override
Called once per pass.
const unsigned int geometryType
Renders such geometries whose type AND-linked with geometryTypeMask equals this.
Represents MeshBase object whose lifetime is managed by instances of this class. This is a format-ind...
Specifies the shader and it's configuration that are to be used for rendering a Geometry node with a ...
Defines MeshRenderingStage class template instance invariants.
const unsigned int geometryType
Holds the geometry type rendered by this MeshRenderingStage.
MeshRenderingMixin(unsigned int geometryType)
Instantiates.
virtual ~MeshRenderingMixin()
Does nothing.
Implements a geometry rendering stage that renders meshes.
MeshRenderingStage(unsigned int geometryType)
Instantiates.
virtual void render(const Renderable &renderable) override
Renders the renderable.
virtual void renderPass(const math::Matrix4f &viewTransform, RenderTask &rt, const Viewport &vp) override
Called once per pass.
Manages the OpenGL render state.
Invokes the rendering stages of the frame renderer successively.
Represents a Geometry object that has been queued into a RenderQueue. The object's model-view transfo...
Defines a rendering viewport. The viewport is a property of the current OpenGL context.
Eigen::Matrix< float, 4, 4, Eigen::ColMajor > Matrix4f
Defines matrix.