view Renderer/Engine/task/RunMove.cc @ 757:5238f3e854fc

Test/create_task , create SPE task from application.
author hiroki
date Fri, 29 Jan 2010 14:34:30 +0900
parents 82429d2f9b35
children 24a37fe8419a
line wrap: on
line source

#include <stdlib.h>
#include <string.h>
#include "RunMove.h"
#include "SgChange.h"

SchedDefineTask(RunMove);

static int
run(SchedTask *smanager, void *rbuf , void *wbuf)
{
    //SceneGraphRoot *sgroot = (SceneGraphRoot *)smanager->get_param(0);    
    SgChange *sgchange = (SgChange *)smanager->get_param(0);
    int width  = (int)smanager->get_param(1);
    int height = (int)smanager->get_param(2);

    SceneGraphRoot *sgroot = sgchange->sgroot_A;
    sgroot->updateControllerState();
    sgroot->allExecute(width, height);
    sgchange->viewer->light_xyz_stock = sgroot->getLightVector();

    return 0;
}