annotate TaskManager/Test/test_render/spe/DrawSpan.h @ 391:136ff78c9e74

fix...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 07 Aug 2009 02:24:06 +0900
parents 016d45583994
children dd2ab68e4036
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
383
25c820b6060e fix header, MemHash in kernel
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 380
diff changeset
4 #include "SchedTask.h"
25c820b6060e fix header, MemHash in kernel
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 380
diff changeset
5 #include "Tapestry.h"
25c820b6060e fix header, MemHash in kernel
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 380
diff changeset
6 #include "SpanPack.h"
184
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
7
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
8 class DrawSpan : public SchedTask {
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
9 public:
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
10 SchedConstructor(DrawSpan);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
11
193
gongo@localhost.localdomain
parents: 184
diff changeset
12 int *linebuf;
gongo@localhost.localdomain
parents: 184
diff changeset
13 float *zRow;
184
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
14 TileListPtr tileList;
193
gongo@localhost.localdomain
parents: 184
diff changeset
15 int doneWrite;
gongo@localhost.localdomain
parents: 184
diff changeset
16
gongo@localhost.localdomain
parents: 184
diff changeset
17 ~DrawSpan(void);
184
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
18
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
19 int run(void *rbuf, void *wbuf);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
20
193
gongo@localhost.localdomain
parents: 184
diff changeset
21 int* linebuf_init(int width, int height, int rgb);
gongo@localhost.localdomain
parents: 184
diff changeset
22 float* zRow_init(int width, int height);
357
953811245b63 fix spe/DrawSpan.{cpp, h} spe/DrawSpanRenew.cpp
root@henri.cr.ie.u-ryukyu.ac.jp
parents: 210
diff changeset
23 uint32 get_rgb(int tx, int ty, TilePtr tile);
380
b4b8345b5366 ps3 fix
e065701@localhost.localdomain
parents: 357
diff changeset
24 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
25 int getTexBlock(int tx, int ty, int twidth);
210
204b03ca98f8 fix DrawSpan
gongo@localhost.localdomain
parents: 205
diff changeset
26 void writebuffer(unsigned int display, int width, int height,
204b03ca98f8 fix DrawSpan
gongo@localhost.localdomain
parents: 205
diff changeset
27 int screen_width);
204b03ca98f8 fix DrawSpan
gongo@localhost.localdomain
parents: 205
diff changeset
28 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
29 int tex_x, int tex_y, TilePtr tile);
210
204b03ca98f8 fix DrawSpan
gongo@localhost.localdomain
parents: 205
diff changeset
30
387
5e2d30bfbf23 no compile error but not worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 383
diff changeset
31 #if 0
184
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
32 void reboot(SpanPackPtr spack, int cur_span_x);
387
5e2d30bfbf23 no compile error but not worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 383
diff changeset
33 #endif
205
gongo@localhost.localdomain
parents: 193
diff changeset
34
210
204b03ca98f8 fix DrawSpan
gongo@localhost.localdomain
parents: 205
diff changeset
35 int drawDot1(SpanPtr span, int startx, int endx, int wait_tag);
204b03ca98f8 fix DrawSpan
gongo@localhost.localdomain
parents: 205
diff changeset
36 void drawDot2(SpanPtr span, int startx, int endx, int js, int wait_tag);
204b03ca98f8 fix DrawSpan
gongo@localhost.localdomain
parents: 205
diff changeset
37 int drawLine1(SpanPtr span, int startx, int endx, int wait_tag);
204b03ca98f8 fix DrawSpan
gongo@localhost.localdomain
parents: 205
diff changeset
38 void drawLine2(SpanPtr span, int startx, int endx, int js, int wait_tag);
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
39 };
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
40
193
gongo@localhost.localdomain
parents: 184
diff changeset
41 typedef struct {
gongo@localhost.localdomain
parents: 184
diff changeset
42 uint32 display;
gongo@localhost.localdomain
parents: 184
diff changeset
43 int screen_width;
gongo@localhost.localdomain
parents: 184
diff changeset
44 int rangex_start;
gongo@localhost.localdomain
parents: 184
diff changeset
45 int rangex_end;
gongo@localhost.localdomain
parents: 184
diff changeset
46 int rangey;
gongo@localhost.localdomain
parents: 184
diff changeset
47 } DrawSpanArg, *DrawSpanArgPtr;
gongo@localhost.localdomain
parents: 184
diff changeset
48
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
49 #endif