8 #ifndef META_OCEAN_TRACKING_MAPTEXTURING_DEPTH_BUFFER_RENDERER_H
9 #define META_OCEAN_TRACKING_MAPTEXTURING_DEPTH_BUFFER_RENDERER_H
25 namespace MapTexturing
This class is the base class for all rendering engines like.
Definition: Engine.h:46
This class implements a renderer for a depth buffer.
Definition: DepthBufferRenderer.h:33
bool downsampleFramebuffer(const Rendering::TextureFramebufferRef &sourceFramebuffer, Rendering::TextureFramebufferRef &targetFramebuffer)
Down-samples a framebuffer by a factor of two.
bool minFilterFramebuffer(const Rendering::TextureFramebufferRef &sourceFramebuffer, Rendering::TextureFramebufferRef &targetFramebuffer)
Applies a 3x3 min-filter step to the source framebuffer.
bool downsampleAndFilterDepthBuffer(const Rendering::Engine &engine, const Rendering::TextureFramebufferRef &sourceFramebuffer, const unsigned int downsampleIterations)
Down-samples and filters a depth framebuffer.
static const char * programVertexShader_
The vertex shader part.
Definition: DepthBufferRenderer.h:105
static const char * programFragmentShaderMinFiltering_
The fragment shader part for 3x3 box filtering.
Definition: DepthBufferRenderer.h:111
~DepthBufferRenderer()
Destructs this renderer and releases all resources.
std::vector< Rendering::TextureFramebufferRef > textureFramebuffers_
The texture framebuffer used when rendering the color ids.
Definition: DepthBufferRenderer.h:93
void release()
Explicitly releases this renderer and releases all resources.
bool isValid() const
Returns whether this renderer has been initialized successfully.
const Rendering::TextureFramebufferRef & textureFramebuffer() const
Returns the current texture framebuffer of this renderer.
Definition: DepthBufferRenderer.h:114
Rendering::TrianglesRef triangles_
The triangle object which will be used to render the triangles.
Definition: DepthBufferRenderer.h:99
Rendering::VertexSetRef vertexSet_
The vertex set holding the vertices to be rendered.
Definition: DepthBufferRenderer.h:96
static const char * programFragmentShaderDownsampling_
The fragment shader part for downsampling.
Definition: DepthBufferRenderer.h:108
Rendering::ShaderProgramRef shaderProgramMinFiltering_
The shader program filtering the depth buffer.
Definition: DepthBufferRenderer.h:90
Rendering::ShaderProgramRef shaderProgramDownsampling_
The shader program downsampling the depth buffer.
Definition: DepthBufferRenderer.h:87
static const char * partPlatform_
The platform-specific shader part.
Definition: DepthBufferRenderer.h:102
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15