Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2017-03-21 07:08:09 +0300
committerMike Erwin <significant.bit@gmail.com>2017-03-21 07:08:09 +0300
commit06f7fba6aaad19023f9430c311ab088a73a6d3e2 (patch)
tree1ab05dd632a6bf140e4fa94fafa97c38092ded1d /source/blender/gpu/intern/gpu_matrix.c
parent74434beb1c50dcdf3174f29c80e25c6d75ccfae7 (diff)
add missing gpuRotate2D function
Prototype was there, we just weren't using this yet. Part of T49450
Diffstat (limited to 'source/blender/gpu/intern/gpu_matrix.c')
-rw-r--r--source/blender/gpu/intern/gpu_matrix.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_matrix.c b/source/blender/gpu/intern/gpu_matrix.c
index de443dce561..f5b6238469a 100644
--- a/source/blender/gpu/intern/gpu_matrix.c
+++ b/source/blender/gpu/intern/gpu_matrix.c
@@ -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};