summary refs log tree commit diff
path: root/src/GFX
diff options
context:
space:
mode:
Diffstat (limited to 'src/GFX')
-rw-r--r--src/GFX/Util/Primitives.cpp6
-rw-r--r--src/GFX/Util/Primitives.hpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/GFX/Util/Primitives.cpp b/src/GFX/Util/Primitives.cpp
index d2c3690..4b44864 100644
--- a/src/GFX/Util/Primitives.cpp
+++ b/src/GFX/Util/Primitives.cpp
@@ -2,7 +2,7 @@
 
 namespace MC::GFX::Util::Primitives {
 
-PlanePrimitive plane(Math::AABB aabb, FaceSet face) {
+PlanePrimitive plane(AABB aabb, FaceSet face) {
     decltype(PlanePrimitive::positions) positions;
     auto [min, max] = aabb;
 
@@ -55,7 +55,7 @@ PlanePrimitive plane(Math::AABB aabb, FaceSet face) {
     return {positions, {normal, normal, normal, normal}, {0, 1, 2, 2, 3, 0}};
 }
 
-BoxPrimitive box(Math::AABB aabb, FaceSet faces) {
+BoxPrimitive box(AABB aabb, FaceSet faces) {
     BoxPrimitive box{};
     auto [min, max] = aabb;
 
@@ -65,7 +65,7 @@ BoxPrimitive box(Math::AABB aabb, FaceSet faces) {
         FaceSet face = (FaceSet::Value)face_value;
         if ((faces & face) == 0) continue;
 
-        Math::AABB face_aabb;
+        AABB face_aabb;
         switch (face) {
         case FaceSet::Front:
             face_aabb = {min, {max.x(), max.y(), min.z()}};
diff --git a/src/GFX/Util/Primitives.hpp b/src/GFX/Util/Primitives.hpp
index b96bc00..a267130 100644
--- a/src/GFX/Util/Primitives.hpp
+++ b/src/GFX/Util/Primitives.hpp
@@ -39,9 +39,9 @@ struct Primitive {
 };
 
 using PlanePrimitive = Primitive<4>;
-PlanePrimitive plane(Math::AABB aabb, FaceSet face);
+PlanePrimitive plane(AABB aabb, FaceSet face);
 
 using BoxPrimitive = Primitive<4 * 6>;
-BoxPrimitive box(Math::AABB aabb, FaceSet faces = FaceSet::all());
+BoxPrimitive box(AABB aabb, FaceSet faces = FaceSet::all());
 
 }