view Renderer/Engine/task/task_init.cc @ 1112:fa1f4a1c47bf draft

fix viewer for non screen mode.
author koba <koba@cr.ie.u-ryukyu.ac.jp>
date Mon, 17 Jan 2011 06:15:46 +0900
parents 25d3cfb85439
children 7ba266bb54d3
line wrap: on
line source

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

SchedExternTask(DataAllocate);
SchedExternTask(DataUpdate);
SchedExternTask(DataFree);

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

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

SchedExternTask(EXEC_ONLY_TASK);
SchedExternTask(RUN_LOOP_TASK);
SchedExternTask(RENDERING_TASK);

SchedExternTask(LoadTexture);

// SchedExternTask(Move);
SchedExternTask(Draw);

// SchedExternTask(Dummy);

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

SchedExternTask(UpdateKey);
SchedExternTask(InitKey);

SchedExternTask(Switch);
SchedExternTask(RunMove);

SchedExternTask(PropertyTask);
SchedExternTask(ExecMove);


/**
 * set_cpu(CPU_PPE) で動作する task
 */
void
task_initialize()
{
    SchedRegister( DataAllocate);
    SchedRegister( DataUpdate);
    SchedRegister( DataFree);

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

    SchedRegister( DrawSpan);
    SchedRegister( DrawBack);

    SchedRegister(EXEC_ONLY_TASK);
    SchedRegister(RUN_LOOP_TASK);
    SchedRegister(RENDERING_TASK);

    SchedRegister( LoadTexture);

//    SchedRegister( Move);
    SchedRegister( Draw);

    // SchedRegister( Dummy);

    SchedRegister( UpdateKey);
    SchedRegister( InitKey);

    //SchedRegister( ShowTime);
    SchedRegister( Switch);

    SchedRegister( ExecMove);

    // usr
//    SchedRegister( ChainMove);
//    SchedRegister( RunMove);
//    SchedRegister( PropertyTask);

}