The Renderer class is responsible for rendering GameObjects using a specified shader.
More...
#include <Renderer.h>
The Renderer class is responsible for rendering GameObjects using a specified shader.
◆ Renderer()
Renderer::Renderer |
( |
const std::string & | shaderPath | ) |
|
Constructor for the Renderer class that takes a shader path as input.
- Parameters
-
shaderPath | The path to the shader file. |
◆ GetType()
static std::string Renderer::GetType |
( |
| ) |
|
|
inlinestatic |
◆ operator()() [1/2]
Renderer * Renderer::operator() |
( |
bool | captureOnDefaultFrame = 0 | ) |
|
Operator overload for adding a renderer as a decorator.
- Parameters
-
captureOnDefaultFrame | Boolean indicating if the renderer should capture on the default framebuffer. |
- Returns
- The modified renderer.
◆ operator()() [2/2]
Operator overload for adding a renderer as a decorator.
- Parameters
-
renderer | The renderer to add as a decorator. |
captureOnDefaultFrame | Boolean indicating if the renderer should capture on the default framebuffer. |
- Returns
- The modified renderer.
◆ SetShader()
void Renderer::SetShader |
( |
const std::string & | shaderPath | ) |
|
Sets the shader for this renderer.
- Parameters
-
shaderPath | The path to the shader file. |
The documentation for this class was generated from the following files: