diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-02-12 21:23:08 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-02-14 02:35:25 +0300 |
commit | 8c09fa3be2ab7ddd70f904923e3ad91e0636528b (patch) | |
tree | aa69350479ab5964f0dc3b55703c534fe6f05a51 /source/blender/gpu/intern/gpu_matrix.c | |
parent | 9c35907ca2c7963d722de469e9116350da70b71b (diff) |
OpenGL immediate mode: added gpuRotate3f to GPU_matrix
Diffstat (limited to 'source/blender/gpu/intern/gpu_matrix.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_matrix.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_matrix.c b/source/blender/gpu/intern/gpu_matrix.c index 855ccaa4999..2a77db6625a 100644 --- a/source/blender/gpu/intern/gpu_matrix.c +++ b/source/blender/gpu/intern/gpu_matrix.c @@ -294,6 +294,12 @@ void gpuMultMatrix2D(const float m[3][3]) state.dirty = true; } +void gpuRotate3f(float deg, float x, float y, float z) +{ + const float axis[3] = {x, y, z}; + gpuRotate3fv(deg, axis); +} + void gpuRotate3fv(float deg, const float axis[3]) { Mat4 m; |