view Renderer/Engine/task/task_init.cc @ 539:3bc98f6d31ff draft

Reorganization..
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 12 Oct 2009 09:39:35 +0900
parents
children 184d6d3f0cd9
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(DrawSpanEnd);
SchedExternTask(DrawSpanRenew);
SchedExternTask(DrawBack);

SchedExternTask(LoadTexture);
SchedExternTask(SetTexture);

SchedExternTask(Move);
SchedExternTask(Draw);

SchedExternTask(Dummy);

SchedExternTask(ShowTime);
SchedExternTask(ChainMove);
SchedExternTask(SendKey);

SchedExternTask(UpdateKey);
SchedExternTask(InitKey);

SchedExternTask(Switch);


/**
 * 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_SPAN_END, DrawSpanEnd);
//    SchedRegisterTask(TASK_DRAW_SPAN2, DrawSpanRenew);
    SchedRegisterTask(TASK_DRAW_BACK, DrawBack);

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

    SchedRegisterTask(TASK_MOVE, Move);
    SchedRegisterTask(TASK_DRAW, Draw);

    SchedRegisterTask(TASK_DUMMY, Dummy);

    SchedRegisterTask(UPDATE_KEY, UpdateKey);
    SchedRegisterTask(INIT_KEY_TASK, InitKey);

    SchedRegisterTask(SHOW_TIME, ShowTime);
    SchedRegisterTask(TASK_SWITCH, Switch);

    // usr
    SchedRegisterTask(CHAIN_MOVE, ChainMove);
}