#include "chunk.hh" Chunk::Chunk() { } Chunk::~Chunk() { for(unsigned int i = 0; i* additionalMatrices) { for(unsigned int i = 0; irender(shader, lightingPass, viewProjcetionMatrix, additionalMatrices); } } void Chunk::addObject(Object* object) { objects.push_back(object); } void Chunk::sortObjects(int textureCount) { // init sortedObjects = std::vector>(textureCount); for(unsigned int i = 0; i(); } for(unsigned int i = 0; igetMaterial()->getTextureUnit() - 2).push_back(objects.at(i)); } } std::vector>* Chunk::getSortedObjects() { return &sortedObjects; }