#ifndef WORLDRENDERER_H__ #define WORLDRENDERER_H__ #include #include #include "../SQCSim-common/world.h" #include "../SQCSim-common/transformation.h" #include "define.h" #include "mesh.h" #include "textureatlas.h" #include "shader.h" class WorldRenderer { private: Array2d m_meshes = Array2d(WORLD_SIZE_X, WORLD_SIZE_Y); public: WorldRenderer(); ~WorldRenderer(); void RenderWorld(World* origin, int& rendercount, const Vector3f& player_pos, const Vector3f& player_dir, Transformation& world, Shader& shader, TextureAtlas& atlas); void UpdateWorld(World* origin, const Vector3f& player, BlockInfo* blockinfo[BTYPE_LAST]); }; #endif