Files
SDBA/src/renderEngine/Renderer.h
2021-05-21 15:09:07 +02:00

33 lines
808 B
C++

#pragma once
#include "../entities/entity.h"
#include "../shaders/entity_shader.h"
namespace render_engine
{
namespace renderer
{
const glm::vec3 SKY_COLOR = { 0.3f, 0.4f, 0.6f };
/*
@brief: Call this function when starting the program
@param shader: The shader to render the entities with
*/
void Init(shaders::EntityShader& shader);
/*
@brief: Call this function before rendering.
This function will enable culling and load the projectionMatrix into the shader.
*/
void Prepare();
/*
@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);
}
}