WorldRenderer.h 526 B

1234567891011121314151617181920212223
  1. #ifndef WORLDRENDERER_H
  2. #define WORLDRENDERER_H
  3. #include "client/rendering/Mesh.h"
  4. #include "client/rendering/ShaderMatrix.h"
  5. #include "common/world/World.h"
  6. #include "gaming-core/rendering/FileTexture.h"
  7. class WorldRenderer {
  8. public:
  9. WorldRenderer(const World& world);
  10. void render(float lag, ShaderMatrix& sm);
  11. void addCube(TypedBuffer<Triangle>& buffer, float x, float y, float z);
  12. bool isAir(int x, int y, int z) const;
  13. private:
  14. const World& world;
  15. Mesh mesh;
  16. FileTexture texture;
  17. };
  18. #endif