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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
1 #ifndef INCLUDED_TASK_DRAW_SPAN
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
2 #define INCLUDED_TASK_DRAW_SPAN
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
4 #ifndef INCLUDED_SCHED_TASK
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
5 # include "SchedTask.h"
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6 #endif
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
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
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
12 #ifndef INCLUDED_SPAN_PACK
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
13 # include "SpanPack.h"
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
14 #endif
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
15
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
16 #ifndef INCLUDED_TEXTURE_HASH
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
17 # include "TileHash.h"
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
18 #endif
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
19
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
20 class DrawSpan : public SchedTask {
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
21 public:
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
22 SchedConstructor(DrawSpan);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
23
193
gongo@localhost.localdomain
parents: 184
diff changeset
24 int *linebuf;
gongo@localhost.localdomain
parents: 184
diff changeset
25 float *zRow;
184
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
26 TileHashPtr hash;
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
27 TileListPtr tileList;
193
gongo@localhost.localdomain
parents: 184
diff changeset
28 int doneWrite;
gongo@localhost.localdomain
parents: 184
diff changeset
29
gongo@localhost.localdomain
parents: 184
diff changeset
30 ~DrawSpan(void);
184
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
31
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
32 int run(void *rbuf, void *wbuf);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
33
193
gongo@localhost.localdomain
parents: 184
diff changeset
34 int* linebuf_init(int width, int height, int rgb);
gongo@localhost.localdomain
parents: 184
diff changeset
35 float* zRow_init(int width, int height);
380
b4b8345b5366 ps3 fix
e065701@localhost.localdomain
parents: 357
diff changeset
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
b4b8345b5366 ps3 fix
e065701@localhost.localdomain
parents: 357
diff changeset
38 TilePtr isAvailableTile(memaddr addr);
b4b8345b5366 ps3 fix
e065701@localhost.localdomain
parents: 357
diff changeset
39 memaddr getTile(int tx, int ty, int tw, memaddr tex_addr_top);
184
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
40 int getTexBlock(int tx, int ty, int twidth);
210
204b03ca98f8 fix DrawSpan
gongo@localhost.localdomain
parents: 205
diff changeset
41 void writebuffer(unsigned int display, int width, int height,
204b03ca98f8 fix DrawSpan
gongo@localhost.localdomain
parents: 205
diff changeset
42 int screen_width);
204b03ca98f8 fix DrawSpan
gongo@localhost.localdomain
parents: 205
diff changeset
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
204b03ca98f8 fix DrawSpan
gongo@localhost.localdomain
parents: 205
diff changeset
45
184
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
46
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
47 void reboot(SpanPackPtr spack, int cur_span_x);
205
gongo@localhost.localdomain
parents: 193
diff changeset
48
210
204b03ca98f8 fix DrawSpan
gongo@localhost.localdomain
parents: 205
diff changeset
49 int drawDot1(SpanPtr span, int startx, int endx, int wait_tag);
204b03ca98f8 fix DrawSpan
gongo@localhost.localdomain
parents: 205
diff changeset
50 void drawDot2(SpanPtr span, int startx, int endx, int js, int wait_tag);
204b03ca98f8 fix DrawSpan
gongo@localhost.localdomain
parents: 205
diff changeset
51 int drawLine1(SpanPtr span, int startx, int endx, int wait_tag);
204b03ca98f8 fix DrawSpan
gongo@localhost.localdomain
parents: 205
diff changeset
52 void drawLine2(SpanPtr span, int startx, int endx, int js, int wait_tag);
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
53 };
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
54
193
gongo@localhost.localdomain
parents: 184
diff changeset
55 typedef struct {
gongo@localhost.localdomain
parents: 184
diff changeset
56 uint32 display;
gongo@localhost.localdomain
parents: 184
diff changeset
57 int screen_width;
gongo@localhost.localdomain
parents: 184
diff changeset
58 int rangex_start;
gongo@localhost.localdomain
parents: 184
diff changeset
59 int rangex_end;
gongo@localhost.localdomain
parents: 184
diff changeset
60 int rangey;
gongo@localhost.localdomain
parents: 184
diff changeset
61 } DrawSpanArg, *DrawSpanArgPtr;
gongo@localhost.localdomain
parents: 184
diff changeset
62
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
63 #endif