1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-25 01:33:49 +00:00

BBGE: use vector glm functions

glm-0.9.5 removed scalar rotate() and translate()
This commit is contained in:
Jan Beich 2015-09-17 21:40:10 +00:00
parent b86133f3e9
commit b0a144c858

View file

@ -316,10 +316,9 @@ static glm::mat4 matrixChain(const RenderObject *ro)
);
if (ro->isfh())
tranformMatrix *= glm::rotate(180.0f, 0.0f, 1.0f, 0.0f);
tranformMatrix *= glm::translate(ro->internalOffset.x, ro->internalOffset.y, 0.0f);
tranformMatrix *= glm::rotate(180.0f, glm::vec3(0.0f, 1.0f, 0.0f));
tranformMatrix *= glm::translate(glm::vec3(ro->internalOffset.x, ro->internalOffset.y, 0.0f));
return tranformMatrix;
}
#else