remove unused function: projectf
authorCampbell Barton <ideasman42@gmail.com>
Sat, 27 Apr 2013 19:27:08 +0000 (19:27 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 27 Apr 2013 19:27:08 +0000 (19:27 +0000)
source/blender/editors/sculpt_paint/paint_intern.h
source/blender/editors/sculpt_paint/paint_utils.c

index 0e377c8a8bb3912ede6f83da4f92875ec6e2903d..f77d0ac4144bc7fae0bcde6572bc96c032fb04f3 100644 (file)
@@ -180,7 +180,6 @@ void paint_calc_redraw_planes(float planes[4][4],
                               struct Object *ob,
                               const struct rcti *screen_rect);
 
-void projectf(struct bglMats *mats, const float v[3], float p[2]);
 float paint_calc_object_space_radius(struct ViewContext *vc, const float center[3], float pixel_radius);
 float paint_get_tex_pixel(struct MTex *mtex, float u, float v, struct ImagePool *pool);
 void paint_get_tex_pixel_col(struct MTex *mtex, float u, float v, float rgba[4], struct ImagePool *pool);
index c3f555e032b6d32e4d9cff6b8583d1a8fc171f07..29acc28df47f2b12d0f31efc189498a7ebf552e5 100644 (file)
@@ -55,7 +55,6 @@
 #include "RNA_define.h"
 
 #include "BIF_gl.h"
-/* TODO: remove once projectf goes away */
 #include "BIF_glutil.h"
 
 #include "RE_shader_ext.h"
@@ -145,19 +144,6 @@ void paint_calc_redraw_planes(float planes[4][4],
        mul_m4_fl(planes, -1.0f);
 }
 
-/* convert a point in model coordinates to 2D screen coordinates */
-/* TODO: can be deleted once all calls are replaced with
- * view3d_project_float() */
-void projectf(bglMats *mats, const float v[3], float p[2])
-{
-       double ux, uy, uz;
-
-       gluProject(v[0], v[1], v[2], mats->modelview, mats->projection,
-                  (GLint *)mats->viewport, &ux, &uy, &uz);
-       p[0] = ux;
-       p[1] = uy;
-}
-
 float paint_calc_object_space_radius(ViewContext *vc, const float center[3],
                                      float pixel_radius)
 {