#include "chunk.hh" Chunk::Chunk() { } Chunk::~Chunk() { for(unsigned int i = 0; i* additionalMatrices) { for(unsigned int i = 0; irender(shader, lightingPass, texturePass, viewProjcetionMatrix, additionalMatrices); } } void Chunk::enqueueObjects(std::vector>* renderQueue) { for(unsigned int i = 0; iat(objects.at(i)->getMaterial()->getTextureUnit() - 2).push_back(objects.at(i)); } } void Chunk::addObject(Object* object) { objects.push_back(object); }