83
|
1 #ifndef INCLUDED_TASK_CREATE_POLYGON_PACK
|
|
2 #define INCLUDED_TASK_CREATE_POLYGON_PACK
|
|
3
|
|
4 #ifndef INCLUDED_SCHED_TASK
|
|
5 # include "SchedTask.h"
|
|
6 #endif
|
|
7
|
|
8 class CreatePolygonPack : public SchedTask {
|
|
9 public:
|
|
10 CreatePolygonPack(TaskListPtr _tlist, TaskPtr _task,
|
|
11 void* _rbuf, void* _wbuf, DmaManager* _con)
|
|
12 :SchedTask(_tlist, _task, _rbuf, _wbuf, _con) {}
|
88
|
13 void read(void);
|
83
|
14 int run(void *readbuf, void *writebuf);
|
105
|
15 void write(void);
|
85
|
16
|
83
|
17 private:
|
|
18 void rotate(float *xyz, float *matrix);
|
85
|
19 inline float sum_across_float4(vector float v);
|
83
|
20 };
|
|
21
|
|
22 #endif
|