[EDIT] comments on each function

This commit is contained in:
Menno
2021-05-21 15:09:07 +02:00
parent e10aea5a15
commit bb4fcbc97b
9 changed files with 160 additions and 19 deletions

View File

@@ -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);
}