view TaskManager/Test/test_render/task/CreateSpan.h @ 161:1f4c3f3238e6 fullHD_omedetou

texture の座標がマイナスになったあと、それを 0 にし忘れてた
author gongo@localhost.localdomain
date Mon, 08 Dec 2008 16:37:02 +0900
parents fc314f28b66e
children 38cbb7aecc70
line wrap: on
line source

#ifndef INCLUDED_CREATE_SPAN
#define INCLUDED_CREATE_SPAN

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

#ifndef INCLUDED_POLYGON_PACK
#  include "polygon_pack.h"
#endif

#ifndef INCLUDED_SPAN_PACK
#  include "SpanPack.h"
#endif

class CreateSpan : public SchedTask {
public:
    SchedConstructor(CreateSpan);
    
    int run(void *rbuf, void *wbuf);
    void half_triangle(SpanPackPtr *spackList,
		       int charge_y_top, int charge_y_end,
		       long *tex_addr, long tex_width, long tex_height,
		       VertexPack *vMin,VertexPack *vMid,VertexPack *vMid1);
    void setTileInfoList(SpanPtr span);
    void setTileInfo(TileInfoPtr tile, int xpos, int ypos,
		     int tex_width, uint32* tex_addr_top);
};

#endif