Responsible for rendering mesh objects using specified shaders. More...
#include <Renderer.h>
Public Member Functions | |
void | Draw (const Mesh &mesh, const Shader &shader) const |
void | Draw (const Mesh &mesh, const Shader &shader, const Mat4 &modelMatrix) const |
Draws a mesh with a specific model transformation matrix. | |
Responsible for rendering mesh objects using specified shaders.
The Renderer class provides functionality to draw mesh objects with a given shader. It encapsulates the rendering logic and serves as an interface for graphics rendering operations.
Draws a mesh with a specific model transformation matrix.
mesh | The mesh to draw. |
shader | The shader to use for rendering. |
modelMatrix | The model transformation matrix. |