dynamic mesh functions

This commit is contained in:
h4570
2022-07-18 20:32:30 +02:00
parent c56c3d76db
commit f249936981
4 changed files with 30 additions and 43 deletions
+7 -1
View File
@@ -13,7 +13,13 @@
namespace Tyra {
Mesh::Mesh() { id = rand() % 1000000; }
Mesh::Mesh(const u8& isMother) {
id = rand() % 1000000;
_isMother = isMother;
translation.translate(Vec4(0.0F, 0.0F, 0.0F, 1.0F));
}
M4x4 Mesh::getModelMatrix() const { return translation * rotation * scale; }
Mesh::~Mesh() {}