view TaskManager/Test/test_render/task/task_init.cpp @ 327:c8edba9cabb7 draft

add test_render/show_time.{cpp,h} {spe,task}/ShowTime.{cpp,h} but incomplete
author aaa
date Fri, 12 Jun 2009 02:07:06 +0900
parents f22280772f20
children 5467c2bedc3a
line wrap: on
line source

#include "../Func.h"
#include "Scheduler.h"

SchedExternTask(Create_SGP);
SchedExternTask(Update_SGP);
SchedExternTask(CreatePolygon);
SchedExternTask(CreatePolygonFromSceneGraph);
SchedExternTask(CreateSpan);

SchedExternTask(DrawSpan);
SchedExternTask(DrawSpanRenew);
SchedExternTask(DrawBack);

SchedExternTask(LoadTexture);
SchedExternTask(SetTexture);

SchedExternTask(Dummy);

SchedExternTask(ShowTime);

/**
 * set_cpu(CPU_PPE) で動作する task
 */
void
task_initialize()
{
    SchedRegisterTask(TASK_CREATE_SGP, Create_SGP);
    SchedRegisterTask(TASK_UPDATE_SGP, Update_SGP);
    SchedRegisterTask(TASK_CREATE_PP,  CreatePolygon);
    SchedRegisterTask(TASK_CREATE_PP2,  CreatePolygonFromSceneGraph);
    SchedRegisterTask(TASK_CREATE_SPAN, CreateSpan);

    SchedRegisterTask(TASK_DRAW_SPAN, DrawSpan);
    SchedRegisterTask(TASK_DRAW_SPAN2, DrawSpanRenew);
    SchedRegisterTask(TASK_DRAW_BACK, DrawBack);

    SchedRegisterTask(TASK_INIT_TEXTURE, LoadTexture);
    SchedRegisterTask(TASK_SET_TEXTURE, SetTexture);

    SchedRegisterTask(TASK_DUMMY, Dummy);

    SchedRegisterTask(SHOW_TIME, ShowTime);
}