Browse Source

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

tags/2021-05-28
jules 10 years ago
parent
commit
063ec9c0d1
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      examples/Demo/Source/Demos/OpenGLDemo.cpp

+ 3
- 4
examples/Demo/Source/Demos/OpenGLDemo.cpp 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)


Loading…
Cancel
Save