World.h 513 B

12345678910111213141516171819202122232425
  1. #ifndef WORLD_H
  2. #define WORLD_H
  3. #include "common/RayTrace.h"
  4. #include "math/Box.h"
  5. #include "math/Vector.h"
  6. #include "rendering/Shader.h"
  7. namespace World {
  8. bool init();
  9. extern Shader shader;
  10. IntVector3 getSize();
  11. void set(int x, int y, int z, bool b);
  12. bool isAir(int x, int y, int z);
  13. void render(float lag);
  14. Vector3 limitMove(const Box& box, Vector3 move);
  15. RayTrace rayTrace(const Vector3& start, const Vector3& direction,
  16. float maxDistance);
  17. }
  18. #endif