annotate TaskManager/Test/test_render/task/DrawSpan.h @ 109:028ffc9c0375 draft

Cerium cvs version
author gongo@gendarme.local
date Wed, 12 Nov 2008 17:39:33 +0900
parents
children 40978d4b608a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
1 #ifndef INCLUDED_TASK_DRAW_SPAN
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
2 #define INCLUDED_TASK_DRAW_SPAN
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
4 #ifndef INCLUDED_SCHED_TASK
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
5 # include "SchedTask.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6 #endif
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
7
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
8 typedef int8_t Sint8;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
9 typedef uint8_t Uint8;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
10 typedef int16_t Sint16;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
11 typedef uint16_t Uint16;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
12 typedef int32_t Sint32;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
13 typedef uint32_t Uint32;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
14 typedef unsigned short GLushort;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
15
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
16 class DrawSpan : public SchedTask {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
17 public:
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
18 SchedConstructor(DrawSpan);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
19
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
20 int run(void *rbuf, void *wbuf);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
21
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
22 float* zRow_init(int w, int h);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
23 void linebuf_init(int *buf, int width, int rgb);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
24
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
25 char* get_pixel(int tx, int ty, void *texture_image);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
26 Uint32 get_rgb(int tx, int ty, void *texture);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
27 };
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
28
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
29 #endif