comparison Renderer/Engine/spe/CreatePolygonFromSceneGraph.cc @ 1161:cc1a50cac83d draft

use MemorySegment API for pp load. do not check execution of the cell side. to be continued..
author Yutaka_Kinjyo
date Thu, 05 May 2011 00:15:43 +0900
parents 5664473b4dba
children 95b114c66e14
comparison
equal deleted inserted replaced
1160:5664473b4dba 1161:cc1a50cac83d
5 */ 5 */
6 6
7 #include "CreatePolygonFromSceneGraph.h" 7 #include "CreatePolygonFromSceneGraph.h"
8 #include "polygon_pack.h" 8 #include "polygon_pack.h"
9 #include "texture.h" 9 #include "texture.h"
10
11 #define STATUS_NUM 3
10 12
11 SchedDefineTask(CreatePolygonFromSceneGraph); 13 SchedDefineTask(CreatePolygonFromSceneGraph);
12 14
13 /** 15 /**
14 * ベクトルに行列を乗算する 16 * ベクトルに行列を乗算する
149 151
150 triangle->tex_info.addr = tritexinfo->pixels; 152 triangle->tex_info.addr = tritexinfo->pixels;
151 triangle->tex_info.width = tritexinfo->t_w; 153 triangle->tex_info.width = tritexinfo->t_w;
152 triangle->tex_info.height = tritexinfo->t_h; 154 triangle->tex_info.height = tritexinfo->t_h;
153 triangle->tex_info.scale_max = tritexinfo->scale_max; 155 triangle->tex_info.scale_max = tritexinfo->scale_max;
156
157 float y[STATUS_NUM] = { xyz1[1], xyz2[1], xyz3[1] };
158 int span_num = 0;
159 span_num = compare_value(y, STATUS_NUM);
160 out_pp->info.span_num += span_num;
161
162
154 } 163 }
155 164
156 return 0; 165 return 0;
157 } 166 }