Mercurial > hg > Game > Cerium
view old/simple_render/spe/spe-main.cpp @ 1740:5a294d8e5643 draft
fix
author | Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 12 Nov 2013 16:56:43 +0900 |
parents | 3bc98f6d31ff |
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); }