8 #ifndef META_OCEAN_TRACKING_MAPTEXTURING_VISIBLE_TRIANGLES_RENDERER_H
9 #define META_OCEAN_TRACKING_MAPTEXTURING_VISIBLE_TRIANGLES_RENDERER_H
30 namespace MapTexturing
This class implements Ocean's image class.
Definition: Frame.h:1792
This class is the base class for all rendering engines like.
Definition: Engine.h:46
This class implements a renderer for all visible triangles.
Definition: VisibleTrianglesRenderer.h:38
Rendering::TextureFramebufferRef textureFramebuffer_
The texture framebuffer used when rendering the color ids.
Definition: VisibleTrianglesRenderer.h:83
static const char * partPlatform_
The platform-specific shader part.
Definition: VisibleTrianglesRenderer.h:95
bool isValid() const
Returns whether this renderer has been initialized successfully.
static const char * programFragmentShaderVisibleTriangles_
The fragment shader part.
Definition: VisibleTrianglesRenderer.h:104
Rendering::VertexSetRef vertexSet_
The vertex set holding the vertices to be rendered.
Definition: VisibleTrianglesRenderer.h:86
void release()
Explicitly releases this renderer and releases all resources.
Rendering::ShaderProgramRef shaderProgramOccludedTriangles_
The shader program removing the ids of (partially) occluded triangles.
Definition: VisibleTrianglesRenderer.h:80
~VisibleTrianglesRenderer()
Destructs this renderer and releases all resources.
const Rendering::TextureFramebufferRef & textureFramebuffer() const
Returns the current texture framebuffer of this renderer.
Definition: VisibleTrianglesRenderer.h:110
static const char * programFragmentShaderOccludedTriangles_
The fragment shader part.
Definition: VisibleTrianglesRenderer.h:107
static const char * programVertexShaderOccludedTriangles_
The vertex shader part.
Definition: VisibleTrianglesRenderer.h:101
Rendering::ShaderProgramRef shaderProgramVisibleTriangles_
The shader program rendering the ids of visible triangles.
Definition: VisibleTrianglesRenderer.h:77
bool render(const Rendering::Engine &engine, const Rendering::TextureFramebufferRef &trianglesIdFramebuffer, const Rendering::TextureFramebufferRef &downsampledDepthFramebuffer, const Scalar nearDistance, const Scalar farDistance)
Extracts the visible triangles out of a framebuffer in which all triangles have been rendered.
static const char * programVertexShaderVisibleTriangles_
The vertex shader part.
Definition: VisibleTrianglesRenderer.h:98
Frame idFrame_
The intermediate frame holding the ids of all visible triangles.
Definition: VisibleTrianglesRenderer.h:92
Rendering::PointsRef points_
The triangle object which will be used to render the triangles.
Definition: VisibleTrianglesRenderer.h:89
float Scalar
Definition of a scalar type.
Definition: Math.h:128
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15