comparison Renderer/Engine/task/CreatePolygonFromSceneGraph.cc @ 909:2683838396c6

fix..
author Yutaka_Kinjyo
date Tue, 20 Jul 2010 04:45:36 +0900
parents bed529c55eda
children 34a9ba655fbe
comparison
equal deleted inserted replaced
908:830bcfbde3bc 909:2683838396c6
13 #define SG_PACK_LOAD 10 13 #define SG_PACK_LOAD 10
14 #define SG_NODE_LOAD 11 14 #define SG_NODE_LOAD 11
15 #define PP_LOAD 12 15 #define PP_LOAD 12
16 #define PP_STORE 13 16 #define PP_STORE 13
17 17
18 #if !SPE_CREATE_POLYGON
19 /** 18 /**
20 * ベクトルに行列を乗算する 19 * ベクトルに行列を乗算する
21 * @param[out] v vector (float[4]) 20 * @param[out] v vector (float[4])
22 * @param[in] m matrix (float[16]) 21 * @param[in] m matrix (float[16])
23 */ 22 */
47 46
48 for (int i = 0; i < 3; i++) { 47 for (int i = 0; i < 3; i++) {
49 v[i] = t[0]*m[i] + t[1]*m[i+4] + t[2]*m[i+8]; 48 v[i] = t[0]*m[i] + t[1]*m[i+4] + t[2]*m[i+8];
50 } 49 }
51 } 50 }
52 #endif
53 51
54 52
55 /** 53 /**
56 * 行列の積 54 * 行列の積
57 * 55 *
74 */ 72 */
75 static int 73 static int
76 run(SchedTask *smanager, void *rbuf, void *wbuf) 74 run(SchedTask *smanager, void *rbuf, void *wbuf)
77 { 75 {
78 76
79 #if !SPE_CREATE_POLYGON
80 77
81 float xyz1[4], xyz2[4], xyz3[4]; 78 float xyz1[4], xyz2[4], xyz3[4];
82 float normal1[4],normal2[4],normal3[4]; 79 float normal1[4],normal2[4],normal3[4];
83 80
84 SceneGraphPtr sg_top = (SceneGraphPtr)smanager->get_param(0); 81 SceneGraphPtr sg_top = (SceneGraphPtr)smanager->get_param(0);
247 smanager->dma_wait(PP_STORE); 244 smanager->dma_wait(PP_STORE);
248 245
249 free(pp); 246 free(pp);
250 free(send_pp); 247 free(send_pp);
251 248
252
253 #endif
254 return 0; 249 return 0;
255 250
256 } 251 }