view TaskManager/Test/test_render/spe/CreateSpan.h @ 354:81b25e5d5379

add example/get_segment and change spe/DrawSpan.cpp
author koba
date Wed, 15 Jul 2009 17:39:51 +0900
parents 204b03ca98f8
children 25c820b6060e
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,
		       TriangleTexInfoPtr tex_info,
		       VertexPack *vMin,VertexPack *vMid,VertexPack *vMid1,
		       int length_y, float tex_y_len);
};

#endif