00001 #ifndef INCLUDED_TASK_CREATE_POLYGON_PACK 00002 #define INCLUDED_TASK_CREATE_POLYGON_PACK 00003 00004 #ifndef INCLUDED_SCHED_TASK 00005 # include "SchedTask.h" 00006 #endif 00007 00008 class CreatePolygonPack : public SchedTask { 00009 public: 00010 CreatePolygonPack(TaskListPtr _tlist, TaskPtr _task, 00011 void* _rbuf, void* _wbuf, DmaManager* _con) 00012 :SchedTask(_tlist, _task, _rbuf, _wbuf, _con) {} 00013 void read(void); 00014 int run(void *readbuf, void *writebuf); 00015 void write(void); 00016 00017 private: 00018 void rotate(float *xyz, float *matrix); 00019 inline float sum_across_float4(vector float v); 00020 }; 00021 00022 #endif