Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Test/test_render/task/CreateSpan.h @ 174:559b48b69b76
getScale()、getTapestry から、span->length に適切なテクスチャの選択に成功
author | gongo@localhost.localdomain |
---|---|
date | Fri, 12 Dec 2008 12:23:20 +0900 |
parents | 56be4a6e5513 |
children | 08e2bb36639b |
rev | line source |
---|---|
109 | 1 #ifndef INCLUDED_CREATE_SPAN |
2 #define INCLUDED_CREATE_SPAN | |
3 | |
4 #ifndef INCLUDED_SCHED_TASK | |
5 # include "SchedTask.h" | |
6 #endif | |
7 | |
8 #ifndef INCLUDED_POLYGON_PACK | |
9 # include "polygon_pack.h" | |
10 #endif | |
11 | |
12 #ifndef INCLUDED_SPAN_PACK | |
13 # include "SpanPack.h" | |
14 #endif | |
15 | |
16 class CreateSpan : public SchedTask { | |
17 public: | |
18 SchedConstructor(CreateSpan); | |
19 | |
20 int run(void *rbuf, void *wbuf); | |
21 void half_triangle(SpanPackPtr *spackList, | |
22 int charge_y_top, int charge_y_end, | |
164
38cbb7aecc70
TilePtr は SPE で計算した方がいいと判断して変更。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
161
diff
changeset
|
23 uint32 *tex_addr, int tex_width, int tex_height, |
174
559b48b69b76
getScale()、getTapestry から、span->length に適切なテクスチャの選択に成功
gongo@localhost.localdomain
parents:
173
diff
changeset
|
24 int tex_scale_max, |
173 | 25 VertexPack *vMin,VertexPack *vMid,VertexPack *vMid1, |
26 int y_length); | |
161
1f4c3f3238e6
texture の座標がマイナスになったあと、それを 0 にし忘れてた
gongo@localhost.localdomain
parents:
141
diff
changeset
|
27 void setTileInfoList(SpanPtr span); |
1f4c3f3238e6
texture の座標がマイナスになったあと、それを 0 にし忘れてた
gongo@localhost.localdomain
parents:
141
diff
changeset
|
28 void setTileInfo(TileInfoPtr tile, int xpos, int ypos, |
1f4c3f3238e6
texture の座標がマイナスになったあと、それを 0 にし忘れてた
gongo@localhost.localdomain
parents:
141
diff
changeset
|
29 int tex_width, uint32* tex_addr_top); |
109 | 30 }; |
141 | 31 |
109 | 32 #endif |