Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-04-27 23:27:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-04-27 23:27:08 +0400
commit4c389127c18c69f635203b22e239fc3c5619cdf9 (patch)
tree18f4284b6cd71e3088bc4b812f814ada78bc4c4d /source/blender/editors
parent7c27cfc0208f319438b33570ad53fcf9618315cf (diff)
remove unused function: projectf
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/sculpt_paint/paint_intern.h1
-rw-r--r--source/blender/editors/sculpt_paint/paint_utils.c14
2 files changed, 0 insertions, 15 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_intern.h b/source/blender/editors/sculpt_paint/paint_intern.h
index 0e377c8a8bb..f77d0ac4144 100644
--- a/source/blender/editors/sculpt_paint/paint_intern.h
+++ b/source/blender/editors/sculpt_paint/paint_intern.h
@@ -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);
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)
{