LampyEngine
 
Загрузка...
Поиск...
Не найдено
Класс RenderModule

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.
 
IRenderergetRenderer ()
 Retrieves a pointer to the active renderer.
 
void shutDown ()
 Shuts down the rendering module and releases all resources.
 

Открытые статические члены

static RenderModulegetInstance ()
 Retrieves the singleton instance of the RenderModule.
 

Подробное описание

Singleton class that manages the rendering module, handling the initialization, selection, and shutdown of the appropriate rendering API (e.g., Vulkan, OpenGL).

Методы

◆ getInstance()

static RenderModule & RenderModule::getInstance ( )
inlinestatic

Retrieves the singleton instance of the RenderModule.

Возвращает
Reference to the RenderModule instance.

◆ getRenderer()

IRenderer * RenderModule::getRenderer ( )
inline

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.

Аргументы
vertPathPath to the vertex shader file.
fragPathPath 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.

Аргументы
vertexDataVertex data to register.

◆ removeShader()

void RenderModule::removeShader ( const std::string & vertPath,
const std::string & fragPath )
inline

Removes a previously registered shader pipeline.

Аргументы
vertPathPath to the vertex shader file.
fragPathPath 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.

Аргументы
vertexDataVertex data to remove.

◆ startUp()

void RenderModule::startUp ( Window * window)
inline

Initializes the rendering module based on the selected graphics API.

Аргументы
windowPointer to the application window.

Объявления и описания членов класса находятся в файле: