12 #ifndef MESHRENDERINGSTAGE_H_6014714286 13 #define MESHRENDERINGSTAGE_H_6014714286 19 #include <Carna/base/ShaderUniform.h> 68 const static unsigned int ROLE_DEFAULT_MESH = 0;
74 const static unsigned int ROLE_DEFAULT_MATERIAL = 1;
107 template<
typename RenderableCompare >
133 virtual void render(
const Renderable& renderable )
override;
138 template<
typename RenderableCompare >
146 template<
typename RenderableCompare >
150 MyType*
const result =
new MyType( MeshRenderingStageBase::geometryType );
151 result->setEnabled( this->isEnabled() );
156 template<
typename RenderableCompare >
161 renderTask =
nullptr;
165 template<
typename RenderableCompare >
170 this->videoResource( material ).activate( rs );
178 this->videoResource( mesh ).get().render();
187 #endif // MESHRENDERINGSTAGE_H_6014714286 Defines Carna::base::Renderable.
Implements a geometry rendering stage that renders meshes.
Manages the OpenGL render state.
Defines Carna::base::RenderTask.
Defines Carna::base::Material.
Defines Carna::base::GeometryStage.
Partially implements a rendering stage that uses at least one render queue for rendering geometry fro...
GeometryFeature & feature(unsigned int role) const
References the feature with role attached to this node in .
Defines Carna::base::Mesh.
const math::Matrix4f & viewModelTransform() const
Returns the inverse modelViewTransform.
Represents MeshBase object whose lifetime is managed by instances of this class. This is a format-ind...
Defines Carna::base::RenderState.
Invokes the rendering stages of the frame renderer successively.
Specifies the shader and it's configuration that are to be used for rendering a Geometry node with a ...
Eigen::Matrix< float, 4, 4, Eigen::ColMajor > Matrix4f
Defines matrix.
MeshRenderingStage(unsigned int geometryType)
Instantiates.
const Geometry & geometry() const
References the geometry node.
Defines a rendering viewport. The viewport is a property of the current OpenGL context.
Defines MeshRenderingStage class template instance invariants.
Represents a Geometry object that has been queued into a RenderQueue. The object's model-view transfo...
const unsigned int geometryType
Holds the geometry type rendered by this MeshRenderingStage.
const math::Matrix4f & modelViewTransform() const
References the model-view transform.