diff options
Diffstat (limited to 'source/blender/gpu/GPU_matrix.h')
-rw-r--r-- | source/blender/gpu/GPU_matrix.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_matrix.h b/source/blender/gpu/GPU_matrix.h index 13648fdc3bd..73566292799 100644 --- a/source/blender/gpu/GPU_matrix.h +++ b/source/blender/gpu/GPU_matrix.h @@ -115,6 +115,14 @@ bool gpuUnProject(const float win[3], const float model[4][4], const float proj[ void gpuOrtho2D(float left, float right, float bottom, float top); +/* functions to get matrix values */ +const float *gpuGetModelViewMatrix3D(float m[4][4]); +const float *gpuGetProjectionMatrix3D(float m[4][4]); +const float *gpuGetModelViewProjectionMatrix3D(float m[4][4]); + +/* set uniform values for currently bound shader */ +void gpuBindMatrices(GLuint program); + #ifdef __cplusplus } #endif |