8#ifndef META_OCEAN_TRACKING_MAPTEXTURING_MESH_RENDERER_H
9#define META_OCEAN_TRACKING_MAPTEXTURING_MESH_RENDERER_H
This class implements Ocean's image class.
Definition Frame.h:1969
This class is the base class for all rendering engines like.
Definition Engine.h:46
This class implements a renderer for the entire mesh.
Definition MeshRenderer.h:41
~MeshRenderer()
Destructs this renderer and releases all resources.
void release()
Explicitly releases this renderer and releases all resources.
static const char * partPlatform_
The platform-specific shader part.
Definition MeshRenderer.h:105
static const char * programVertexShader_
The vertex shader part.
Definition MeshRenderer.h:111
Rendering::ShaderProgramRef shaderProgram_
The shader program rendering individual triangles with individual color ids.
Definition MeshRenderer.h:99
static const char * partTextureAtlas_
The shader part for the texture atlas.
Definition MeshRenderer.h:108
std::unordered_map< Index32, Rendering::TextureFramebufferRef > TextureFramebufferMap
Definition of an unordered map mapping mesh ids to texture framebuffers.
Definition MeshRenderer.h:47
static const char * programFragmentShader_
The fragment shader part.
Definition MeshRenderer.h:114
bool isValid() const
Returns whether this renderer has been initialized successfully.
Rendering::TextureFramebufferRef textureFramebuffer_
The texture framebuffer holding the states of the individual triangles.
Definition MeshRenderer.h:102
bool render(const Rendering::Engine &engine, const Rendering::VertexSetRef &vertexSet, const Rendering::TrianglesRef &triangles, const unsigned int numberTriangles, const AnyCamera &anyCamera, const HomogenousMatrix4 &world_T_camera, const TextureFramebufferMap &textureFramebufferMap, const Rendering::TextureFramebufferRef &trianglesStateFramebuffer, const TextureAtlas &textureAtlas, Frame *renderedFrame=nullptr)
Renders textured triangles into a texture atlas.
bool initialize(const Rendering::Engine &engine)
Initializes this renderer.
const Rendering::TextureFramebufferRef & textureFramebuffer() const
Returns the current texture framebuffer of this renderer.
Definition MeshRenderer.h:117
This class implements a texture atlas for triangles with regular shape.
Definition TextureAtlas.h:31
HomogenousMatrixT4< Scalar > HomogenousMatrix4
Definition of the HomogenousMatrix4 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION flag eit...
Definition HomogenousMatrix4.h:44
AnyCameraT< Scalar > AnyCamera
Definition of an AnyCamera object with Scalar precision.
Definition AnyCamera.h:31
SmartObjectRef< TextureFramebuffer > TextureFramebufferRef
Definition of a smart object reference holding a texture framebuffer.
Definition rendering/TextureFramebuffer.h:32
SmartObjectRef< Triangles > TrianglesRef
Definition of a smart object reference holding a triangles node.
Definition Triangles.h:29
SmartObjectRef< VertexSet > VertexSetRef
Definition of a smart object reference holding a vertex set node.
Definition VertexSet.h:31
SmartObjectRef< ShaderProgram > ShaderProgramRef
Definition of a smart object reference holding a shader program object.
Definition rendering/ShaderProgram.h:37
Definition BlockedMesh.h:28
Namespace of the Tracker library.
The namespace covering the entire Ocean framework.
Definition Accessor.h:15