OpenMiner/include/world/World.hpp
2014-12-25 23:37:32 +01:00

45 lines
850 B
C++

/*
* =====================================================================================
*
* Filename: World.hpp
*
* Description:
*
* Version: 1.0
* Created: 16/12/2014 15:28:02
* Revision: none
* Compiler: gcc
*
* Author: Quentin BAZIN, <quent42340@gmail.com>
* Company:
*
* =====================================================================================
*/
#ifndef WORLD_HPP_
#define WORLD_HPP_
#include <memory>
#include "Chunk.hpp"
class World {
public:
World();
~World();
void draw(Shader &shader, const glm::mat4 &pv);
Chunk *getChunk(s32 x, s32 z);
// Render distance in chunks
static const u16 renderDistance = 4;
private:
s32 m_width;
s32 m_depth;
std::vector<std::unique_ptr<Chunk>> m_chunks;
};
#endif // WORLD_HPP_