diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-27 23:27:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-27 23:27:08 +0400 |
commit | 4c389127c18c69f635203b22e239fc3c5619cdf9 (patch) | |
tree | 18f4284b6cd71e3088bc4b812f814ada78bc4c4d /source/blender/editors/sculpt_paint/paint_utils.c | |
parent | 7c27cfc0208f319438b33570ad53fcf9618315cf (diff) |
remove unused function: projectf
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_utils.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_utils.c | 14 |
1 files changed, 0 insertions, 14 deletions
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) { |