Closed enbyted closed 9 years ago
Don't forget to change m_TransformationBack for the override part:
if (override) {
m_TransformationStack.push_back(matrix);
m_TransformationBack = matrix;
} else {
maths::mat4* result = m_TransformationBack * matrix;
m_TransformationStack.push_back(result);
m_TransformationBack = result;
}
Keep in mind that the transformation stack vector does not hold pointers, so this isn't exactly going to work. Please open another issue if you think I am misunderstanding you. :)
Instead of using vector's back() in push methoh in renderer2d, you could do:
I haven't tested it, but it should be a bit faster