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
|
|
8 typedef int8_t Sint8;
|
|
9 typedef uint8_t Uint8;
|
|
10 typedef int16_t Sint16;
|
|
11 typedef uint16_t Uint16;
|
|
12 typedef int32_t Sint32;
|
|
13 typedef uint32_t Uint32;
|
|
14 typedef unsigned short GLushort;
|
|
15
|
|
16 class DrawSpan : public SchedTask {
|
|
17 public:
|
|
18 SchedConstructor(DrawSpan);
|
|
19
|
|
20 int run(void *rbuf, void *wbuf);
|
|
21
|
|
22 float* zRow_init(int w, int h);
|
|
23 void linebuf_init(int *buf, int width, int rgb);
|
|
24
|
|
25 char* get_pixel(int tx, int ty, void *texture_image);
|
|
26 Uint32 get_rgb(int tx, int ty, void *texture);
|
|
27 };
|
|
28
|
|
29 #endif
|