15#ifndef OCCLUDEDRENDERINGSTAGE_H_6014714286
16#define OCCLUDEDRENDERINGSTAGE_H_6014714286
63 const std::unique_ptr< Details > pimpl;
65 struct VideoResources;
66 std::unique_ptr< VideoResources > vr;
Defines LibCarna::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...
virtual void reshape(base::FrameRenderer &fr, unsigned int width, unsigned int height) override
Orders this stage to reshape its buffers according to the specified width and height.
float occlusionTranslucency() const
Tells the translucency of the occluding geometry.
void enableStage(const base::RenderStage &rs)
Enables rs in .
static const float DEFAULT_OCCLUSION_TRANSLUCENCY
Holds the default translucency of the occluding geometry.
bool isStageEnabled(const base::RenderStage &rs) const
Tells whether rs is enabled in .
OccludedRenderingStage()
Sets translucency of occluding geometry to DEFAULT_OCCLUSION_TRANSLUCENCY.
void disableStage(const base::RenderStage &rs)
Disables rs in .
virtual void prepareFrame(base::Node &root) override
Called once before each frame.
void disableAllStages()
Disables all stages.
void setOcclusionTranslucency(float translucency)
Sets the translucency of the occluding geometry.
virtual ~OccludedRenderingStage()
Deletes.
virtual void renderPass(const base::math::Matrix4f &viewTransform, base::RenderTask &rt, const base::Viewport &vp) override
Called once per pass.
Eigen::Matrix< float, 4, 4, Eigen::ColMajor > Matrix4f
Defines matrix.