#pragma once #include #include "object.hh" using namespace ACGL::OpenGL; class Chunk { public: Chunk(); ~Chunk(); void render(SharedShaderProgram shader, bool lightingPass, glm::mat4* viewProjcetionMatrix, std::vector* additionalMatrices=0); void addObject(Object* object); void sortObjects(int textureCount); std::vector>* getSortedObjects(); private: std::vector objects; std::vector> sortedObjects; };