Singleton class that manages the rendering module, handling the initialization, selection, and shutdown of the appropriate rendering API (e.g., Vulkan, OpenGL).
Подробнее...
#include <RenderModule.h>
|
| void | startUp (Window *window) |
| | Initializes the rendering module based on the selected graphics API.
|
| |
| void | registerShader (const std::string &vertPath, const std::string &fragPath) |
| | Registers a shader pipeline using the provided vertex and fragment shader paths.
|
| |
| void | removeShader (const std::string &vertPath, const std::string &fragPath) |
| | Removes a previously registered shader pipeline.
|
| |
| void | registerVertexData (const std::vector< Vertex > &vertexData) |
| | Registers vertex data, creating a Vulkan vertex buffer if needed.
|
| |
| void | removeVertexData (const std::vector< Vertex > &vertexData) |
| | Removes vertex data and releases associated buffers if no longer needed.
|
| |
| IRenderer * | getRenderer () |
| | Retrieves a pointer to the active renderer.
|
| |
|
void | shutDown () |
| | Shuts down the rendering module and releases all resources.
|
| |
Singleton class that manages the rendering module, handling the initialization, selection, and shutdown of the appropriate rendering API (e.g., Vulkan, OpenGL).
◆ getInstance()
◆ getRenderer()
Retrieves a pointer to the active renderer.
- Возвращает
- Pointer to the active IRenderer instance.
◆ registerShader()
| void RenderModule::registerShader |
( |
const std::string & | vertPath, |
|
|
const std::string & | fragPath ) |
|
inline |
Registers a shader pipeline using the provided vertex and fragment shader paths.
- Аргументы
-
| vertPath | Path to the vertex shader file. |
| fragPath | Path to the fragment shader file. |
◆ registerVertexData()
| void RenderModule::registerVertexData |
( |
const std::vector< Vertex > & | vertexData | ) |
|
|
inline |
Registers vertex data, creating a Vulkan vertex buffer if needed.
- Аргументы
-
| vertexData | Vertex data to register. |
◆ removeShader()
| void RenderModule::removeShader |
( |
const std::string & | vertPath, |
|
|
const std::string & | fragPath ) |
|
inline |
Removes a previously registered shader pipeline.
- Аргументы
-
| vertPath | Path to the vertex shader file. |
| fragPath | Path to the fragment shader file. |
◆ removeVertexData()
| void RenderModule::removeVertexData |
( |
const std::vector< Vertex > & | vertexData | ) |
|
|
inline |
Removes vertex data and releases associated buffers if no longer needed.
- Аргументы
-
| vertexData | Vertex data to remove. |
◆ startUp()
| void RenderModule::startUp |
( |
Window * | window | ) |
|
|
inline |
Initializes the rendering module based on the selected graphics API.
- Аргументы
-
| window | Pointer to the application window. |
Объявления и описания членов класса находятся в файле: