12#ifndef OCCLUDEDRENDERINGSTAGE_H_6014714286
13#define OCCLUDEDRENDERINGSTAGE_H_6014714286
60 const std::unique_ptr< Details > pimpl;
62 struct VideoResources;
63 std::unique_ptr< VideoResources > vr;
Defines Carna::base::RenderStage.
Defines logic for rendering frames from given scenes.
Defines the inner node of a scene graph. Implements a spatial scene element that is allowed to have c...
Base abstract class of each rendering stage. Refer to the documentation of the rendering process.
Invokes the rendering stages of the frame renderer successively.
Defines a rendering viewport. The viewport is a property of the current OpenGL context.
Renders geometry that is actually depth-occluded. The occluded geometry is rendered with reduced opac...
bool isStageEnabled(const base::RenderStage &rs) const
Tells whether rs is enabled in .
virtual void renderPass(const base::math::Matrix4f &viewTransform, base::RenderTask &rt, const base::Viewport &vp) override
Called once per pass.
void disableAllStages()
Disables all stages.
void setOcclusionTranslucency(float translucency)
Sets the translucency of the occluding geometry.
static const float DEFAULT_OCCLUSION_TRANSLUCENCY
Holds the default translucency of the occluding geometry.
void enableStage(const base::RenderStage &rs)
Enables rs in .
OccludedRenderingStage * clone() const override
Returns same RenderStage implementation with same configuration.
virtual void prepareFrame(base::Node &root) override
Called once before each frame.
virtual void reshape(base::FrameRenderer &fr, unsigned int width, unsigned int height) override
Orders this stage to reshape its buffers according to the specified dimensions.
float occlusionTranslucency() const
Tells the translucency of the occluding geometry.
void disableStage(const base::RenderStage &rs)
Disables rs in .
OccludedRenderingStage()
Sets translucency of occluding geometry to DEFAULT_OCCLUSION_TRANSLUCENCY.
virtual ~OccludedRenderingStage()
Deletes.
Eigen::Matrix< float, 4, 4, Eigen::ColMajor > Matrix4f
Defines matrix.