Untold Engine  Beta v0.0.16
docs
U4DEngine::U4DRenderManager Class Reference

The U4DRenderManager class manages all rendering for 3D models, images, skyboxes, etc. More...

Public Member Functions

void initRenderPipelines ()
 
void render (id< MTLCommandBuffer > uCommandBuffer, U4DEntity *uRootEntity)
 
void updateGlobalDataUniforms ()
 
void updateDirLightDataUniforms ()
 
void updatePointLightDataUniforms ()
 
U4DRenderPipelineInterfacesearchPipeline (std::string uPipelineName)
 
void addRenderPipeline (U4DRenderPipelineInterface *uRenderPipeline)
 
void makePipelineWithShader (std::string uPipelineName, std::string uVertexShaderName, std::string uFragmentShaderName)
 

Static Public Member Functions

static U4DRenderManagersharedInstance ()
 

Public Attributes

id< MTLBuffer > globalDataUniform
 Pointer to the Uniform that holds Global data such as time, resolution,etc.
 
id< MTLBuffer > directionalLightPropertiesUniform
 
id< MTLBuffer > pointLightsPropertiesUniform
 

Protected Member Functions

 U4DRenderManager ()
 Constructor for the U4DRenderManager. More...
 
 ~U4DRenderManager ()
 Destructor for the U4DRenderManager. More...
 

Detailed Description

The U4DRenderManager class manages all rendering for 3D models, images, skyboxes, etc.

Constructor & Destructor Documentation

◆ U4DRenderManager()

U4DEngine::U4DRenderManager::U4DRenderManager ( )
protected

Constructor for the U4DRenderManager.

The constructor initializes the Metal device and sets the descriptors and pipeline states to NULL

◆ ~U4DRenderManager()

U4DEngine::U4DRenderManager::~U4DRenderManager ( )
protected

Destructor for the U4DRenderManager.

Sets all descriptors and pipeline states to NULL