diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-09-22 13:19:24 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-09-22 13:19:24 +0300 |
commit | 1d469f3780dc9138448a49851a9056c3596a7cf8 (patch) | |
tree | df453fd7f0e16ca858b689b1a1aeeeecdceb8c7c /source/blender/gpu/intern/gpu_matrix.c | |
parent | 0e7c3dfe75cb16158eb5df0520f32b7b7f0921f0 (diff) |
OpenGL: remove double precision matrix functions
Proper fp64 is a GL 4.x feature. Pretending to support it in our API is just clutter.
Diffstat (limited to 'source/blender/gpu/intern/gpu_matrix.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_matrix.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/source/blender/gpu/intern/gpu_matrix.c b/source/blender/gpu/intern/gpu_matrix.c index 29b8c0235de..9a938cc39f0 100644 --- a/source/blender/gpu/intern/gpu_matrix.c +++ b/source/blender/gpu/intern/gpu_matrix.c @@ -220,22 +220,6 @@ void gpuLoadMatrix(eGPUMatrixMode stack, const float *m) CHECKMAT(ms_current); } -void gpuLoadMatrixd(eGPUMatrixMode stack, const double *md) -{ - GPU_matrix_stack *ms_current = mstacks + stack; - float mf[16]; - int i; - - for (i = 0; i < 16; i++) { - mf[i] = md[i]; - } - - copy_m4_m4(ms_current->dynstack[ms_current->pos], (float (*)[4])mf); - - CHECKMAT(ms_current); -} - - const GLfloat *gpuGetMatrix(eGPUMatrixMode stack, GLfloat *m) { GPU_matrix_stack *ms_select = mstacks + stack; @@ -249,20 +233,6 @@ const GLfloat *gpuGetMatrix(eGPUMatrixMode stack, GLfloat *m) } } -void gpuGetMatrixd(eGPUMatrixMode stack, double m[16]) -{ - GPU_matrix_stack *ms_select = mstacks + stack; - - if (m) { - int i; - float *f = ms_select->dynstack[ms_select->pos][0]; - for (i = 0; i < 16; i++) { - m[i] = f[i]; - /* copy_m3_m3d(); should use something like */ - } - } -} - void gpuLoadIdentity(eGPUMatrixMode stack) { GPU_matrix_stack *ms_current = mstacks + stack; @@ -298,18 +268,6 @@ void gpuMultMatrix(eGPUMatrixMode stack, const float *m) CHECKMAT(ms_current); } -void gpuMultMatrixd(eGPUMatrixMode stack, const double *m) -{ - GLfloat mf[16]; - GLint i; - - for (i = 0; i < 16; i++) { - mf[i] = m[i]; - } - - gpuMultMatrix(stack, mf); -} - void gpuRotateVector(eGPUMatrixMode stack, GLfloat deg, GLfloat vector[3]) { GPU_matrix_stack *ms_current = mstacks + stack; @@ -459,10 +417,3 @@ void GPU_feedback_vertex_4fv(GLenum type, GLfloat x, GLfloat y, GLfloat z, GLflo float in[4] = {x, y, z, w}; mul_v4_m4v4(out, m[0], in); } - -void GPU_feedback_vertex_4dv(GLenum type, GLdouble x, GLdouble y, GLdouble z, GLdouble w, GLdouble out[3]) -{ - GPU_matrix *m = (GPU_matrix*)gpuGetMatrix(type, NULL); - double in[4] = {x, y, z, w}; - mul_v4d_m4v4d(out, m[0], in); -} |