![]() |
LibCarna Version 3.4.0
|
Implements rendering stage that renders transparent meshes. More...
#include <TransparentRenderingStage.hpp>
Inheritance diagram for LibCarna::presets::TransparentRenderingStage:
Collaboration diagram for LibCarna::presets::TransparentRenderingStage:Public Member Functions | |
| TransparentRenderingStage (unsigned int geometryType) | |
| Instantiates. | |
| virtual void | renderPass (const base::math::Matrix4f &viewTransform, base::RenderTask &rt, const base::Viewport &vp) override |
| Renders transparent geometries with enabled blending and disabled depth writing. | |
Public Member Functions inherited from LibCarna::base::MeshRenderingStage< base::Renderable::BackToFront > | |
| MeshRenderingStage (unsigned int geometryType) | |
| Instantiates. | |
Public Member Functions inherited from LibCarna::base::GeometryStage< RenderableCompare > | |
| GeometryStage (unsigned int geometryType, unsigned int geometryTypeMask=RenderQueue< RenderableCompare >::EXACT_MATCH_GEOMETRY_TYPE_MASK) | |
| Instantiates s.t. the predefined rendering queue enqueues such LibCarna::base::Geometry scene graph nodes, whose geometry type AND-linked with geometryTypeMask equals the geometryType specified here. | |
| virtual | ~GeometryStage () |
| Releases acquired video resources. | |
| virtual void | prepareFrame (Node &root) override |
| Called once before each frame. | |
| std::size_t | renderedPassesCount () const |
| Tells the number of passes rendered so far since the beginning of the current frame. | |
| template<typename GeometryFeatureType > | |
| GeometryFeatureType::ManagedInterface & | videoResource (GeometryFeatureType &geometryFeature) const |
| Interfaces the geometryFeature video resources that were acquired by this rendering stage. | |
| template<typename GeometryFeatureType > | |
| const GeometryFeatureType::ManagedInterface & | videoResource (const GeometryFeatureType &geometryFeature) const |
Public Member Functions inherited from LibCarna::base::RenderStage | |
| RenderStage () | |
| Instantiates in enabled-state. | |
| virtual | ~RenderStage () |
| Deletes. | |
| void | setViewTransformFixed (bool viewTransformFixed) |
| Sets whether the view transform is pass-invariant for the duration of a single frame. | |
| bool | isViewTransformFixed () const |
| Tells whether the view transform is pass-invariant for the duration of a single frame. | |
| virtual void | reshape (FrameRenderer &fr, unsigned int width, unsigned int height) |
| Orders this stage to reshape its buffers according to the specified width and height. | |
| bool | isInitialized () const |
| Tells whether this stage is ready for rendering. | |
| bool | isEnabled () const |
| Tells whether this stage is enabled. Disabled stages are not rendered by render tasks. | |
| void | setEnabled (bool) |
| Sets whether this stage is enabled. Disabled stages are not rendered by render tasks. | |
| base::FrameRenderer & | renderer () |
| References the renderer this stage belongs to. | |
| const base::FrameRenderer & | renderer () const |
| void | addRenderStageListener (RenderStageListener &listener) |
| Adds listener to the set of listeners this instance notifies in \(\mathcal O\left(\log n\right)\). | |
| void | removeRenderStageListener (RenderStageListener &listener) |
| Removes listener from the set of listeners this instance notifies in \(\mathcal O\left(\log n\right)\). | |
Public Member Functions inherited from LibCarna::base::MeshRenderingMixin | |
| MeshRenderingMixin (unsigned int geometryType) | |
| Instantiates. | |
| virtual | ~MeshRenderingMixin () |
| Does nothing. | |
Additional Inherited Members | |
Public Attributes inherited from LibCarna::base::GeometryStage< RenderableCompare > | |
| const unsigned int | geometryType |
| Renders such geometries whose type AND-linked with geometryTypeMask equals this. | |
| const unsigned int | geometryTypeMask |
| Renders such geometries whose type AND-linked with this equals geometryType. | |
Public Attributes inherited from LibCarna::base::MeshRenderingMixin | |
| const unsigned int | geometryType |
| Holds the geometry type rendered by this MeshRenderingStage. | |
Static Public Attributes inherited from LibCarna::base::MeshRenderingMixin | |
| static const unsigned int | DEFAULT_ROLE_MESH = 0 |
| Identifies the Mesh object that MeshRenderingStage uses for rendering. | |
| static const unsigned int | DEFAULT_ROLE_MATERIAL = 1 |
| Identifies the Material object that MeshRenderingStage uses for rendering. | |
Protected Member Functions inherited from LibCarna::base::MeshRenderingStage< base::Renderable::BackToFront > | |
| virtual void | render (const Renderable &renderable) override |
| Renders the renderable. | |
Protected Member Functions inherited from LibCarna::base::GeometryStage< RenderableCompare > | |
| void | activateGLContext () const |
| Ensures that the OpenGL context of the hosting LibCarna::base::FrameRenderer is the current one. | |
| virtual void | buildRenderQueues (Node &root, const math::Matrix4f &viewTransform) |
| Builds the rendering queues of this stage. | |
| virtual void | rewindRenderQueues () |
| Rewinds the rendering queues of this stage. | |
| virtual void | updateRenderQueues (const math::Matrix4f &viewTransform) |
| Recomputes the model-view transforms of the renderables enqueued by this stage. | |
Protected Attributes inherited from LibCarna::base::GeometryStage< RenderableCompare > | |
| RenderQueue< RenderableCompare > | rq |
| Holds the predefined rendering queue of this rendering stage. | |
Implements rendering stage that renders transparent meshes.
The TransparentRenderingStage constructor takes a geometry type parameter:
The concept of geometry types is explained here.
The following example code configures the scene s.t. it produces the rendering presented further below:
The concept of materials, meshes and other geometry feature is explained here.
Definition at line 63 of file TransparentRenderingStage.hpp.
|
explicit |
Instantiates.
| geometryType | is the geometry type rendered by this stage. |
|
overridevirtual |
Renders transparent geometries with enabled blending and disabled depth writing.
Reimplemented from LibCarna::base::MeshRenderingStage< base::Renderable::BackToFront >.
Written by Leonid Kostrykin © 2021–2025. Based on Carna (© 2010-2016).
Documentation generated by Doxygen