Nigel Barink
d019155d10
* Added a basic material abstraction * Started implementation of RenderTarget (such as render textures)
26 lines
368 B
C++
26 lines
368 B
C++
#include "Graphics/Renderer.h"
|
|
|
|
BarinkEngine::Renderer::Renderer()
|
|
{
|
|
models = std::vector<Renderable*>();
|
|
}
|
|
|
|
BarinkEngine::Renderer::~Renderer()
|
|
{
|
|
// CleanUp!
|
|
}
|
|
|
|
void BarinkEngine::Renderer::Render()
|
|
{
|
|
|
|
for (auto model : models) {
|
|
model->Draw();
|
|
}
|
|
|
|
}
|
|
|
|
void BarinkEngine::Renderer::Submit(Renderable* model)
|
|
{
|
|
models.push_back(model);
|
|
}
|