[EDIT] comments on each function
This commit is contained in:
@@ -10,17 +10,23 @@ namespace render_engine
|
||||
const glm::vec3 SKY_COLOR = { 0.3f, 0.4f, 0.6f };
|
||||
|
||||
/*
|
||||
Call this function when starting the program
|
||||
@brief: Call this function when starting the program
|
||||
|
||||
@param shader: The shader to render the entities with
|
||||
*/
|
||||
void Init(shaders::EntityShader& shader);
|
||||
|
||||
/*
|
||||
Call this function before rendering.
|
||||
@brief: Call this function before rendering.
|
||||
This function will enable culling and load the projectionMatrix into the shader.
|
||||
*/
|
||||
void Prepare();
|
||||
|
||||
/*
|
||||
Call this function when wanting to Render a mesh to the screen.
|
||||
@brief: Call this function when wanting to Render a mesh to the screen.
|
||||
|
||||
@param entity: The entity which needs to be rendered
|
||||
@param shader: The shader the entity needs to be rendered with
|
||||
*/
|
||||
void Render(entities::Entity& entity, shaders::EntityShader& shader);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user