From 4c389127c18c69f635203b22e239fc3c5619cdf9 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 27 Apr 2013 19:27:08 +0000 Subject: remove unused function: projectf --- source/blender/editors/sculpt_paint/paint_utils.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'source/blender/editors/sculpt_paint/paint_utils.c') diff --git a/source/blender/editors/sculpt_paint/paint_utils.c b/source/blender/editors/sculpt_paint/paint_utils.c index c3f555e032b..29acc28df47 100644 --- a/source/blender/editors/sculpt_paint/paint_utils.c +++ b/source/blender/editors/sculpt_paint/paint_utils.c @@ -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) { -- cgit v1.2.3