1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Updated openGL demo app now that the Matrix3D class works the other (correct!) way around.

This commit is contained in:
jules 2015-06-17 11:48:10 -05:00
parent f8cffb5949
commit 063ec9c0d1

View file

@ -701,13 +701,12 @@ struct OpenGLDemoClasses
Matrix3D<float> getViewMatrix() const
{
Matrix3D<float> viewMatrix (Vector3D<float> (0.0f, 1.0f, -10.0f));
viewMatrix *= draggableOrientation.getRotationMatrix();
Matrix3D<float> viewMatrix = draggableOrientation.getRotationMatrix()
* Vector3D<float> (0.0f, 1.0f, -10.0f);
Matrix3D<float> rotationMatrix = viewMatrix.rotated (Vector3D<float> (rotation, rotation, -0.3f));
return viewMatrix * rotationMatrix;
return rotationMatrix * viewMatrix;
}
void setTexture (DemoTexture* t)