mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
add 'rotate' and 'origin' box modifier to vcm
This commit is contained in:
parent
fc122ef3e1
commit
18d4cff678
3 changed files with 78 additions and 31 deletions
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue