[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56348] trunk/blender/source/blender/ editors/sculpt_paint: remove unused function: projectf
Campbell Barton
ideasman42 at gmail.com
Sat Apr 27 21:27:08 CEST 2013
Revision: 56348
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56348
Author: campbellbarton
Date: 2013-04-27 19:27:08 +0000 (Sat, 27 Apr 2013)
Log Message:
-----------
remove unused function: projectf
Modified Paths:
--------------
trunk/blender/source/blender/editors/sculpt_paint/paint_intern.h
trunk/blender/source/blender/editors/sculpt_paint/paint_utils.c
Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_intern.h
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_intern.h 2013-04-27 19:00:26 UTC (rev 56347)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_intern.h 2013-04-27 19:27:08 UTC (rev 56348)
@@ -180,7 +180,6 @@
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);
Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_utils.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_utils.c 2013-04-27 19:00:26 UTC (rev 56347)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_utils.c 2013-04-27 19:27:08 UTC (rev 56348)
@@ -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 @@
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)
{
More information about the Bf-blender-cvs
mailing list