Voltray Engine Docs
Loading...
Searching...
No Matches
Renderer Class Reference

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.
 

Detailed Description

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.

Note
This class assumes that the graphics context and resources (such as meshes and shaders) are properly initialized and managed.

Member Function Documentation

◆ Draw() [1/2]

void Renderer::Draw ( const Mesh mesh,
const Shader shader 
) const

◆ Draw() [2/2]

void Renderer::Draw ( const Mesh mesh,
const Shader shader,
const Mat4 modelMatrix 
) const

Draws a mesh with a specific model transformation matrix.

Parameters
meshThe mesh to draw.
shaderThe shader to use for rendering.
modelMatrixThe model transformation matrix.

The documentation for this class was generated from the following files: