Updated the Matrix3 class and documentation (internal stuff)
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1507 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
a00a9c1cc2
commit
1e6161c750
5 changed files with 109 additions and 160 deletions
|
@ -339,7 +339,7 @@ const Matrix3& Drawable::GetMatrix() const
|
|||
// First recompute it if needed
|
||||
if (!myMatrixUpdated)
|
||||
{
|
||||
myMatrix.SetFromTransformations(myOrigin, myPosition, myRotation, myScale);
|
||||
myMatrix = Matrix3::Transformation(myOrigin, myPosition, myRotation, myScale);
|
||||
myMatrixUpdated = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -137,7 +137,7 @@ void Renderer::SetModelView(const Matrix3& matrix)
|
|||
////////////////////////////////////////////////////////////
|
||||
void Renderer::ApplyModelView(const Matrix3& matrix)
|
||||
{
|
||||
myStates->modelView *= matrix;
|
||||
myStates->modelView = myStates->modelView * matrix;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -199,7 +199,7 @@ const Matrix3& View::GetMatrix() const
|
|||
// Recompute the matrix if needed
|
||||
if (!myMatrixUpdated)
|
||||
{
|
||||
myMatrix.SetFromProjection(myCenter, mySize, myRotation);
|
||||
myMatrix = Matrix3::Projection(myCenter, mySize, myRotation);
|
||||
myMatrixUpdated = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue