Merge pull request #949 from Akz-/grim-quat

GRIM: Use quaternions for animation.
This commit is contained in:
Joel Teichroeb 2014-07-04 10:45:32 -07:00
commit 5f87912e91
14 changed files with 77 additions and 85 deletions

View file

@ -765,6 +765,11 @@ void GfxOpenGLS::rotateViewpoint(const Math::Angle &angle, const Math::Vector3d
_matrixStack.top() = temp;
}
void GfxOpenGLS::rotateViewpoint(const Math::Matrix4 &rot) {
Math::Matrix4 temp = rot * _matrixStack.top();
_matrixStack.top() = temp;
}
void GfxOpenGLS::translateViewpointFinish() {
_matrixStack.pop();
}