This class implements a renderer for retired triangle allowing to determine whether they can be delet...
Definition: RetiredTrianglesRenderer.h:37
const Rendering::TextureFramebufferRef & textureFramebuffer() const
Returns the current texture framebuffer of this renderer.
Definition: RetiredTrianglesRenderer.h:100
static const char * programVertexShaderRetiredTriangles_
The vertex shader part.
Definition: RetiredTrianglesRenderer.h:94
Frame stateFrame_
The intermediate state frame.
Definition: RetiredTrianglesRenderer.h:88
static const char * programFragmentShaderRetiredTriangles_
The fragment shader part.
Definition: RetiredTrianglesRenderer.h:97
void release()
Explicitly releases this renderer and releases all resources.
~RetiredTrianglesRenderer()
Destructs this renderer and releases all resources.
bool render(const Rendering::Engine &engine, const Rendering::VertexSetRef &vertexSet, const Rendering::TrianglesRef &triangles, const unsigned int numberTriangles, const SquareMatrix4 &projectionMatrix, const HomogenousMatrix4 &world_T_camera, const Rendering::TextureFramebufferRef &trianglesStateFramebuffer, const Rendering::TextureFramebufferRef &downsampledDepthFramebuffer, const Scalar nearDistance, const Scalar farDistance, Indices32 &deletedTriangleIds)
Renders all retired triangles to determine whether they can be deleted.
Rendering::TextureFramebufferRef textureFramebuffer_
The texture framebuffer in which the triangles will be rendered.
Definition: RetiredTrianglesRenderer.h:85
static const char * partPlatform_
The platform-specific shader part.
Definition: RetiredTrianglesRenderer.h:91
bool isValid() const
Returns whether this renderer has been initialized successfully.
Rendering::ShaderProgramRef shaderProgramRetiredTriangles_
The shader program to render the retired triangles.
Definition: RetiredTrianglesRenderer.h:82