lol/src/Drawable.cpp

14 lines
249 B
C++
Raw Normal View History

2021-12-22 23:25:50 +00:00
#include "backend/Drawable.hpp"
void Drawable::Draw(const CameraBase& camera) const
{
shader->Use();
PreRender(camera);
vao->Render(static_cast<unsigned int>(type));
}
void Drawable::SetPrimitiveType(PrimitiveType type)
{
this->type = type;
}