Saxum/game/chunk.hh
2015-03-16 16:58:50 +01:00

18 lines
433 B
C++

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