mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-21 01:49:44 +00:00
add Merge::transform, Model::merge
This commit is contained in:
parent
e01cc25f7c
commit
495e5fa994
2 changed files with 33 additions and 0 deletions
|
|
@ -72,6 +72,9 @@ namespace model {
|
|||
const glm::mat4& transform
|
||||
);
|
||||
void scale(const glm::vec3& size);
|
||||
|
||||
/// @brief Apply transformation matrix to vertices coordinates
|
||||
void transform(const glm::mat4& matrix);
|
||||
};
|
||||
|
||||
struct Model {
|
||||
|
|
@ -91,5 +94,12 @@ namespace model {
|
|||
}
|
||||
/// @brief Remove all empty meshes
|
||||
void clean();
|
||||
|
||||
/// @brief Apply transformation matrix to vertices coordinates
|
||||
void transform(const glm::mat4& matrix);
|
||||
|
||||
/// @brief Copy or merge meshes from source model to this.
|
||||
/// Does not remove duplicates
|
||||
void merge(const Model& source);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue