Implements element handling.

This commit is contained in:
2021-08-25 18:17:31 +09:00
parent 213902021c
commit e74a599ac1
20 changed files with 2081 additions and 76 deletions

View File

@@ -40,9 +40,15 @@ class DrawableBase : public iDrawable {
invmat_ = ::linalg::inverse(mat_);
}
void SetAlpha(float a) {
alpha_ = a;
}
protected:
mat3 mat_ = ::linalg::identity;
mat3 invmat_ = ::linalg::identity;
float alpha_ = 1;
};