#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::addObject(Object* object) { objects.push_back(object); } void Chunk::sortObjects(int materialCount) { // init sortedObjects = std::vector>(materialCount); for(unsigned int i = 0; i(); } for(unsigned int i = 0; igetMaterial()->getMaterialId()).push_back(objects.at(i)); } } std::vector>* Chunk::getSortedObjects() { return &sortedObjects; }