view TaskManager/Test/test_render/task/Switch.cc @ 415:0ec031961882 draft

SceneGraph switch add
author tkaito@henri.cr.ie.u-ryukyu.ac.jp
date Wed, 23 Sep 2009 20:57:55 +0900
parents
children 6094dfd1f08c
line wrap: on
line source

#include <stdlib.h>
#include <string.h>
#include "Switch.h"
#include "viewer_types.h"
#include "SceneGraphRoot.h"

SchedDefineTask(Switch);

int
Switch::run(void *rbuf, void *wbuf)
{
    SceneGraphRootPtr tmp = sgroot;
    sgroot = sgroot_2;
    sgroot_2 = tmp;

    return 0;
}