Minor: Add Canvas::Transform.
This commit is contained in:
@@ -53,6 +53,10 @@ void Canvas::Concat(const Matrix& xformation) {
|
||||
xformation_stack_.back().xformation = xformation * GetCurrentTransformation();
|
||||
}
|
||||
|
||||
void Canvas::Transform(const Matrix& xformation) {
|
||||
Concat(xformation);
|
||||
}
|
||||
|
||||
const Matrix& Canvas::GetCurrentTransformation() const {
|
||||
return xformation_stack_.back().xformation;
|
||||
}
|
||||
|
||||
@@ -41,6 +41,8 @@ class Canvas {
|
||||
|
||||
const Matrix& GetCurrentTransformation() const;
|
||||
|
||||
void Transform(const Matrix& xformation);
|
||||
|
||||
void Concat(const Matrix& xformation);
|
||||
|
||||
void Translate(const Vector3& offset);
|
||||
|
||||
Reference in New Issue
Block a user