Merge pull request #949 from Akz-/grim-quat
GRIM: Use quaternions for animation.
This commit is contained in:
commit
5f87912e91
14 changed files with 77 additions and 85 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue