render refactoring

This commit is contained in:
A-lex-Ra
2023-12-17 21:52:00 +06:00
parent 89d9447410
commit 88280f8002
6 changed files with 59 additions and 47 deletions
+10
View File
@@ -24,7 +24,17 @@ struct CoordSystem {
glm::ivec3 fix;
glm::ivec3 fix2;
CoordSystem() = default;
CoordSystem(glm::ivec3 axisX, glm::ivec3 axisY, glm::ivec3 axisZ, glm::ivec3 fix);
void transform(AABB& aabb);
static bool CoordSystem::isVectorHasNegatives(glm::ivec3 vec) {
if (vec.x < 0 || vec.y < 0 || vec.z < 0) {
return true;
}
else return false;
}
};
struct BlockRotProfile {