view TaskManager/Test/test_render/Application/title.cc @ 431:b40a9b901d71 draft

fix
author game@henri.cr.ie.u-ryukyu.ac.jp
date Thu, 24 Sep 2009 20:43:14 +0900
parents 2c592936bbdf
children 8d86242337ba
line wrap: on
line source

#include "SceneGraphRoot.h"
#include "vacuum.h"
#include "SGList.h"

void
title_collision(SceneGraphPtr node, int w, int h,SceneGraphPtr tree)
{
  
  Pad *pad = sgroot->getController();
  
  if(pad->start.isPush()) {
    
    SceneGraphPtr vacuum;
    SceneGraphPtr back = sgroot->createSceneGraph(); 

    vacuum = sgroot->createSceneGraph(BIGCUBE);
    vacuum->xyz[0] = w/2;
    vacuum->xyz[1] = h*0.8;
    vacuum->set_move_collision(vacuum_move, vacuum_coll);
    
    back->addChild(vacuum);
    
    add_cubecollision_object(REDCUBE,vacuum,w,h);
    
    sgroot->setSceneData(back);
      
  }
}