Mercurial > hg > Game > Cerium
comparison TaskManager/Test/simple_render/spe/CreatePolygonPack.cpp @ 87:265fb700dd4c
*** empty log message ***
author | gongo |
---|---|
date | Wed, 27 Feb 2008 11:14:20 +0900 |
parents | 9b96b190cb73 |
children | 504899860e66 |
comparison
equal
deleted
inserted
replaced
86:61bacd3b4405 | 87:265fb700dd4c |
---|---|
52 | 52 |
53 rotate(xyz1, node->translation); | 53 rotate(xyz1, node->translation); |
54 rotate(xyz2, node->translation); | 54 rotate(xyz2, node->translation); |
55 rotate(xyz3, node->translation); | 55 rotate(xyz3, node->translation); |
56 | 56 |
57 pp->tri[pt].x1 = xyz1[0]; | 57 pp->tri[pt].ver1.x = xyz1[0]; |
58 pp->tri[pt].y1 = xyz1[1]; | 58 pp->tri[pt].ver1.y = xyz1[1]; |
59 pp->tri[pt].z1 = xyz1[2]; | 59 pp->tri[pt].ver1.z = xyz1[2]; |
60 pp->tri[pt].tex_x1 = node->texture[nt]; | 60 pp->tri[pt].ver1.tex_x = node->texture[nt]; |
61 pp->tri[pt].tex_y1 = node->texture[nt+1]; | 61 pp->tri[pt].ver1.tex_y = node->texture[nt+1]; |
62 | 62 |
63 pp->tri[pt].x2 = xyz2[0]; | 63 pp->tri[pt].ver2.x = xyz2[0]; |
64 pp->tri[pt].y2 = xyz2[1]; | 64 pp->tri[pt].ver2.y = xyz2[1]; |
65 pp->tri[pt].z2 = xyz2[2]; | 65 pp->tri[pt].ver2.z = xyz2[2]; |
66 pp->tri[pt].tex_x2 = node->texture[nt+2]; | 66 pp->tri[pt].ver2.tex_x = node->texture[nt+2]; |
67 pp->tri[pt].tex_y2 = node->texture[nt+2+1]; | 67 pp->tri[pt].ver2.tex_y = node->texture[nt+2+1]; |
68 | 68 |
69 pp->tri[pt].x3 = xyz3[0]; | 69 pp->tri[pt].ver3.x = xyz3[0]; |
70 pp->tri[pt].y3 = xyz3[1]; | 70 pp->tri[pt].ver3.y = xyz3[1]; |
71 pp->tri[pt].z3 = xyz3[2]; | 71 pp->tri[pt].ver3.z = xyz3[2]; |
72 pp->tri[pt].tex_x3 = node->texture[nt+4]; | 72 pp->tri[pt].ver3.tex_x = node->texture[nt+4]; |
73 pp->tri[pt].tex_y3 = node->texture[nt+4+1]; | 73 pp->tri[pt].ver3.tex_y = node->texture[nt+4+1]; |
74 | 74 |
75 pp->tri[pt].tex_width = node->tex_width; | |
76 pp->tri[pt].tex_height = node->tex_height; | |
75 } | 77 } |
76 pp->info.size = pt; | 78 pp->info.size = pt; |
79 pp->ssl = sgp->ssl; | |
77 } | 80 } |
78 | 81 |
79 return sizeof(PolygonPack); | 82 return sizeof(PolygonPack); |
80 } | 83 } |
81 | 84 |
82 | 85 |
83 void | 86 void |
84 CreatePolygonPack::rotate(float *xyz, float *matrix) | 87 CreatePolygonPack::rotate(float *xyz, float *matrix) |
85 { | 88 { |
86 #if 0 | 89 #if 1 |
87 float abc[4]; | 90 float abc[4]; |
88 | 91 |
89 abc[0] = xyz[0]; | 92 abc[0] = xyz[0]; |
90 abc[1] = xyz[1]; | 93 abc[1] = xyz[1]; |
91 abc[2] = xyz[2]; | 94 abc[2] = xyz[2]; |