view example/renew_task/spe/Renew2.cc @ 870:79b2d56aa27a

fix SceneGraphRoot::set_game_task.
author tkaito
date Tue, 29 Jun 2010 04:23:52 +0900
parents ab866bc8a624
children
line wrap: on
line source

#include <stdio.h>
#include "Renew2.h"
#include "SpeProfile.h"
#include "Func.h"

/* これは必須 */
SchedDefineTask(Renew2);

static int
run(SchedTask *s, void *rbuf, void *wbuf)
{
    SpeProfile *profile = (SpeProfile*) s->global_get(0);
    profile->ProfStop();
    profile->ProfPrint();

    s->printf("[SPE] ** running Renew2\n");

    s->printf("[SPE] Create Task : Renew3\n");
    HTaskPtr nextTask =  s->create_task(RENEW3);
    nextTask->spawn();
    
    s->printf("[SPE] ** finish  Renew2\n\n");

    profile->ProfStart();

    return 0;
}