view TaskManager/Test/simple_render/spe/spe-main.cpp @ 106:c9efdb17e8d2

*** empty log message ***
author gongo
date Tue, 04 Mar 2008 15:33:23 +0900
parents 3e331f7576a1
children
line wrap: on
line source

#include "../Func.h"
#include "SchedTask.h"

//extern SchedTask*
//createTask_createPolygonPack(TaskListPtr _taskList, TaskPtr _task,
//		     void *rbuff, void *wbuff, DmaManager *dma);

extern SchedTask*
createTask_spuDraw(TaskListPtr _taskList, TaskPtr _task,
		   void *rbuff, void *wbuff, DmaManager *dma);

extern SchedTask*
createTask_LoadTexture(TaskListPtr _taskList, TaskPtr _task,
		       void *rbuf, void *wbuf, DmaManager *dma);


SchedTask::TaskObject task_list[16];

static void
set_task(int cmd, SchedTask::TaskObject task)
{
    task_list[cmd] = task;
}

class SpuDraw;

void
task_init(void)
{
    //set_task(2, createTask_createPolygonPack);
     set_task(TASK_INIT_TEXTURE, createTask_LoadTexture);
     set_task(TASK_DRAW, createTask_spuDraw);
}