add missing gpuRotate2D function

Prototype was there, we just weren't using this yet.

Part of T49450
This commit is contained in:
Mike Erwin 2017-03-21 00:08:09 -04:00
parent 74434beb1c
commit 06f7fba6aa
1 changed files with 12 additions and 0 deletions

View File

@ -360,6 +360,18 @@ void gpuMultMatrix2D(const float m[3][3])
state.dirty = true;
}
void gpuRotate2D(float deg)
{
#if SUPPORT_LEGACY_MATRIX
if (state.mode == MATRIX_MODE_INACTIVE) {
glRotatef(deg, 0.0f, 0.0f, 1.0f);
return;
}
#endif
BLI_assert(false); /* TODO: finish for MATRIX_MODE_2D */
}
void gpuRotate3f(float deg, float x, float y, float z)
{
const float axis[3] = {x, y, z};