2022-06-04 16:26:58 +00:00
|
|
|
#include "Graphics/Renderer.h"
|
|
|
|
|
|
|
|
BarinkEngine::Renderer::Renderer()
|
|
|
|
{
|
|
|
|
models = std::vector<Renderable*>();
|
|
|
|
}
|
|
|
|
|
|
|
|
BarinkEngine::Renderer::~Renderer()
|
|
|
|
{
|
|
|
|
// CleanUp!
|
|
|
|
}
|
|
|
|
|
|
|
|
void BarinkEngine::Renderer::Render()
|
|
|
|
{
|
|
|
|
|
|
|
|
for (auto model : models) {
|
2022-07-09 20:21:56 +00:00
|
|
|
//model->Draw();
|
2022-06-04 16:26:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void BarinkEngine::Renderer::Submit(Renderable* model)
|
|
|
|
{
|
|
|
|
models.push_back(model);
|
|
|
|
}
|