add 'rotate' and 'origin' box modifier to vcm

This commit is contained in:
MihailRis
2025-10-16 22:57:45 +03:00
parent fc122ef3e1
commit 18d4cff678
3 changed files with 78 additions and 31 deletions
+11 -2
View File
@@ -22,14 +22,16 @@ namespace model {
const glm::vec3& pos,
const glm::vec3& right,
const glm::vec3& up,
const glm::vec3& norm
const glm::vec3& norm,
const UVRegion& region
);
void addPlane(
const glm::vec3& pos,
const glm::vec3& right,
const glm::vec3& up,
const glm::vec3& norm,
const UVRegion& region
const UVRegion& region,
const glm::mat4& transform
);
void addRect(
const glm::vec3& pos,
@@ -45,6 +47,13 @@ namespace model {
const UVRegion (&texfaces)[6],
const bool enabledSides[6]
);
void addBox(
const glm::vec3& pos,
const glm::vec3& size,
const UVRegion (&texfaces)[6],
const bool enabledSides[6],
const glm::mat4& transform
);
void scale(const glm::vec3& size);
};