[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [47344] branches/soc-2011-tomato/intern/ raskter: small code cleanup in inner loop of rasterizer

Peter Larabell xgl.asyliax at gmail.com
Sat Jun 2 02:02:00 CEST 2012


Revision: 47344
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=47344
Author:   xglasyliax
Date:     2012-06-02 00:01:59 +0000 (Sat, 02 Jun 2012)
Log Message:
-----------
small code cleanup in inner loop of rasterizer

Modified Paths:
--------------
    branches/soc-2011-tomato/intern/raskter/raskter.c
    branches/soc-2011-tomato/intern/raskter/raskter.h

Modified: branches/soc-2011-tomato/intern/raskter/raskter.c
===================================================================
--- branches/soc-2011-tomato/intern/raskter/raskter.c	2012-06-01 23:25:09 UTC (rev 47343)
+++ branches/soc-2011-tomato/intern/raskter/raskter.c	2012-06-02 00:01:59 UTC (rev 47344)
@@ -307,9 +307,7 @@
 
 			if ((y_curr >= 0) && (y_curr < ctx->rb.sizey)) {
 				/* draw the pixels. */
-				for (; cpxl <= mpxl; cpxl++) {
-					*cpxl = 1.0f;
-				}
+                for (; cpxl <= mpxl; *cpxl++ = 1.0f);
 			}
 		}
 

Modified: branches/soc-2011-tomato/intern/raskter/raskter.h
===================================================================
--- branches/soc-2011-tomato/intern/raskter/raskter.h	2012-06-01 23:25:09 UTC (rev 47343)
+++ branches/soc-2011-tomato/intern/raskter/raskter.h	2012-06-02 00:01:59 UTC (rev 47344)
@@ -50,7 +50,7 @@
 
 int PLX_raskterize(float (*base_verts)[2], int num_base_verts,
                    float *buf, int buf_x, int buf_y);
-
+int PLX_add_feather(float *base_verts, int num_base_verts, float *feather_verts, int num_feather_verts, float *buf, int buf_x, int buf_y, int negaive);
 int PLX_raskterize_feather(float (*base_verts)[2], int num_base_verts,
                            float (*feather_verts)[2], int num_feather_verts,
                            float *buf, int buf_x, int buf_y);




More information about the Bf-blender-cvs mailing list