dynamic mesh functions
This commit is contained in:
@@ -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() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user