#ifndef BLANK_WORLD_BLOCK_HPP_
#define BLANK_WORLD_BLOCK_HPP_
+#include "../graphics/glm.hpp"
+
#include <iosfwd>
-#include <glm/glm.hpp>
namespace blank {
struct Block {
using Type = unsigned short;
- using Pos = glm::vec3;
enum Face {
FACE_UP,
}
static Face NormalFace(const glm::vec3 &norm) noexcept {
- const glm::vec3 anorm(abs(norm));
+ const glm::vec3 anorm(glm::abs(norm));
if (anorm.x > anorm.y) {
if (anorm.x > anorm.z) {
return norm.x > 0.0f ? FACE_RIGHT : FACE_LEFT;