view TaskManager/Test/test_render/spe/DrawSpan.h @ 266:5c9dbd54cd51

merge
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 04 Jun 2009 00:00:09 +0900
parents e742053c4c87
children 907bda4a1a14
line wrap: on
line source

#ifndef INCLUDED_TASK_DRAW_SPAN
#define INCLUDED_TASK_DRAW_SPAN

#ifndef INCLUDED_SCHED_TASK
#  include "SchedTask.h"
#endif

#ifndef INCLUDED_TAPESTRY
#  include "Tapestry.h"
#endif

typedef int8_t          Sint8;
typedef uint8_t         Uint8;
typedef int16_t         Sint16;
typedef uint16_t        Uint16;
typedef int32_t         Sint32;
typedef uint32_t        Uint32;
typedef unsigned short  GLushort;

class DrawSpan : public SchedTask {
public:
    SchedConstructor(DrawSpan);

    int run(void *rbuf, void *wbuf);

    void linebuf_init(int *buf, int width, int rgb);    
    Uint32 get_rgb(int tx, int ty, uint32 *addr);
};

#endif