Mercurial > hg > Members > kono > Cerium
comparison TaskManager/Test/simple_render/task/create_pp.cpp @ 85:9b96b190cb73
*** empty log message ***
author | gongo |
---|---|
date | Wed, 27 Feb 2008 04:25:04 +0900 |
parents | 64ef030deb22 |
children | 663bc2a213f5 |
comparison
equal
deleted
inserted
replaced
84:c2e178b3415f | 85:9b96b190cb73 |
---|---|
34 | 34 |
35 rotate(xyz1, node->translation); | 35 rotate(xyz1, node->translation); |
36 rotate(xyz2, node->translation); | 36 rotate(xyz2, node->translation); |
37 rotate(xyz3, node->translation); | 37 rotate(xyz3, node->translation); |
38 | 38 |
39 pp->tri[pt].x1 = xyz1[0]; | 39 pp->tri[pt].ver1.x = xyz1[0]; |
40 pp->tri[pt].y1 = xyz1[1]; | 40 pp->tri[pt].ver1.y = xyz1[1]; |
41 pp->tri[pt].z1 = xyz1[2]; | 41 pp->tri[pt].ver1.z = xyz1[2]; |
42 pp->tri[pt].tex_x1 = node->texture[nt]; | 42 pp->tri[pt].ver1.tex_x = node->texture[nt]; |
43 pp->tri[pt].tex_y1 = node->texture[nt+1]; | 43 pp->tri[pt].ver1.tex_y = node->texture[nt+1]; |
44 | 44 |
45 pp->tri[pt].x2 = xyz2[0]; | 45 pp->tri[pt].ver2.x = xyz2[0]; |
46 pp->tri[pt].y2 = xyz2[1]; | 46 pp->tri[pt].ver2.y = xyz2[1]; |
47 pp->tri[pt].z2 = xyz2[2]; | 47 pp->tri[pt].ver2.z = xyz2[2]; |
48 pp->tri[pt].tex_x2 = node->texture[nt+2]; | 48 pp->tri[pt].ver2.tex_x = node->texture[nt+2]; |
49 pp->tri[pt].tex_y2 = node->texture[nt+2+1]; | 49 pp->tri[pt].ver2.tex_y = node->texture[nt+2+1]; |
50 | 50 |
51 pp->tri[pt].x3 = xyz3[0]; | 51 pp->tri[pt].ver3.x = xyz3[0]; |
52 pp->tri[pt].y3 = xyz3[1]; | 52 pp->tri[pt].ver3.y = xyz3[1]; |
53 pp->tri[pt].z3 = xyz3[2]; | 53 pp->tri[pt].ver3.z = xyz3[2]; |
54 pp->tri[pt].tex_x3 = node->texture[nt+4]; | 54 pp->tri[pt].ver3.tex_x = node->texture[nt+4]; |
55 pp->tri[pt].tex_y3 = node->texture[nt+4+1]; | 55 pp->tri[pt].ver3.tex_y = node->texture[nt+4+1]; |
56 | |
57 //pp->tri[pt].tex_addr = node->tex_addr; | |
58 pp->tri[pt].tex_width = node->tex_width; | |
59 pp->tri[pt].tex_height = node->tex_height; | |
56 | 60 |
57 } | 61 } |
58 pp->info.size = pt; | 62 pp->info.size = pt; |
63 pp->ssl = sgp->ssl; | |
59 } | 64 } |
60 | |
61 return sizeof(PolygonPack); | 65 return sizeof(PolygonPack); |
62 } | 66 } |