Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Test/test_render/spe/DrawSpan.h @ 380:b4b8345b5366
ps3 fix
author | e065701@localhost.localdomain |
---|---|
date | Fri, 31 Jul 2009 20:44:08 +0900 |
parents | 953811245b63 |
children | 25c820b6060e |
rev | line source |
---|---|
109 | 1 #ifndef INCLUDED_TASK_DRAW_SPAN |
2 #define INCLUDED_TASK_DRAW_SPAN | |
3 | |
4 #ifndef INCLUDED_SCHED_TASK | |
5 # include "SchedTask.h" | |
6 #endif | |
7 | |
167
c8b868871dce
DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents:
166
diff
changeset
|
8 #ifndef INCLUDED_TAPESTRY |
c8b868871dce
DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents:
166
diff
changeset
|
9 # include "Tapestry.h" |
c8b868871dce
DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents:
166
diff
changeset
|
10 #endif |
c8b868871dce
DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents:
166
diff
changeset
|
11 |
184 | 12 #ifndef INCLUDED_SPAN_PACK |
13 # include "SpanPack.h" | |
14 #endif | |
15 | |
16 #ifndef INCLUDED_TEXTURE_HASH | |
17 # include "TileHash.h" | |
18 #endif | |
19 | |
109 | 20 class DrawSpan : public SchedTask { |
21 public: | |
22 SchedConstructor(DrawSpan); | |
23 | |
193 | 24 int *linebuf; |
25 float *zRow; | |
184 | 26 TileHashPtr hash; |
27 TileListPtr tileList; | |
193 | 28 int doneWrite; |
29 | |
30 ~DrawSpan(void); | |
184 | 31 |
109 | 32 int run(void *rbuf, void *wbuf); |
33 | |
193 | 34 int* linebuf_init(int width, int height, int rgb); |
35 float* zRow_init(int width, int height); | |
380 | 36 TilePtr set_rgb(memaddr addr, int wait_tag); |
357
953811245b63
fix spe/DrawSpan.{cpp, h} spe/DrawSpanRenew.cpp
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
210
diff
changeset
|
37 uint32 get_rgb(int tx, int ty, TilePtr tile); |
380 | 38 TilePtr isAvailableTile(memaddr addr); |
39 memaddr getTile(int tx, int ty, int tw, memaddr tex_addr_top); | |
184 | 40 int getTexBlock(int tx, int ty, int twidth); |
210 | 41 void writebuffer(unsigned int display, int width, int height, |
42 int screen_width); | |
43 void updateBuffer(float zpos, int rangex, int x, int y, | |
357
953811245b63
fix spe/DrawSpan.{cpp, h} spe/DrawSpanRenew.cpp
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
210
diff
changeset
|
44 int tex_x, int tex_y, TilePtr tile); |
210 | 45 |
184 | 46 |
47 void reboot(SpanPackPtr spack, int cur_span_x); | |
205 | 48 |
210 | 49 int drawDot1(SpanPtr span, int startx, int endx, int wait_tag); |
50 void drawDot2(SpanPtr span, int startx, int endx, int js, int wait_tag); | |
51 int drawLine1(SpanPtr span, int startx, int endx, int wait_tag); | |
52 void drawLine2(SpanPtr span, int startx, int endx, int js, int wait_tag); | |
109 | 53 }; |
54 | |
193 | 55 typedef struct { |
56 uint32 display; | |
57 int screen_width; | |
58 int rangex_start; | |
59 int rangex_end; | |
60 int rangey; | |
61 } DrawSpanArg, *DrawSpanArgPtr; | |
62 | |
109 | 63 #endif |