[Bf-blender-cvs] [50d92aa] master: OpenGL: remove utility functions that take doubles

Mike Erwin noreply at git.blender.org
Tue Dec 15 04:41:53 CET 2015


Commit: 50d92aaf15a097dd798668a3967c6fe5600183c7
Author: Mike Erwin
Date:   Mon Dec 14 22:40:41 2015 -0500
Branches: master
https://developer.blender.org/rB50d92aaf15a097dd798668a3967c6fe5600183c7

OpenGL: remove utility functions that take doubles

Kill these before someone is tempted to use them! Discourage use of fp64
generally.

===================================================================

M	source/blender/editors/include/BIF_gl.h

===================================================================

diff --git a/source/blender/editors/include/BIF_gl.h b/source/blender/editors/include/BIF_gl.h
index 58da0b5..e264d9e 100644
--- a/source/blender/editors/include/BIF_gl.h
+++ b/source/blender/editors/include/BIF_gl.h
@@ -91,19 +91,14 @@ BLI_INLINE void glTranslate3iv(const int vec[3])    { glTranslatef(UNPACK3_EX((c
 BLI_INLINE void glTranslate2iv(const int vec[2])    { glTranslatef(UNPACK2_EX((const float), vec, ), 0.0f); }
 BLI_INLINE void glTranslate3fv(const float vec[3])  { glTranslatef(UNPACK3(vec));       }
 BLI_INLINE void glTranslate2fv(const float vec[2])  { glTranslatef(UNPACK2(vec), 0.0f); }
-BLI_INLINE void glTranslate3dv(const double vec[3]) { glTranslated(UNPACK3(vec));       }
-BLI_INLINE void glTranslate2dv(const double vec[2]) { glTranslated(UNPACK2(vec), 0.0f); }
 
 BLI_INLINE void glScale3iv(const int vec[3])    { glTranslatef(UNPACK3_EX((const float), vec, ));       }
 BLI_INLINE void glScale2iv(const int vec[2])    { glTranslatef(UNPACK2_EX((const float), vec, ), 0.0f); }
 BLI_INLINE void glScale3fv(const float vec[3])  { glScalef(UNPACK3(vec));      }
 BLI_INLINE void glScale2fv(const float vec[2])  { glScalef(UNPACK2(vec), 0.0); }
-BLI_INLINE void glScale3dv(const double vec[3]) { glScaled(UNPACK3(vec));      }
-BLI_INLINE void glScale2dv(const double vec[2]) { glScaled(UNPACK2(vec), 0.0); }
 
 /* v2 versions don't make much sense for rotation */
 BLI_INLINE void glRotate3fv(const float angle, const float vec[3])   { glRotatef(angle, UNPACK3(vec)); }
-BLI_INLINE void glRotate3dv(const double angle, const double vec[3]) { glRotated(angle, UNPACK3(vec)); }
 
 #endif /* #ifdef __BIF_GL_H__ */




More information about the Bf-blender-cvs mailing list