vrsode/src/NoShape.cpp

Go to the documentation of this file.
00001 
00002 #include "NoShape.h"
00003 
00004 #include <vrs/box.h>
00005 #include <vrs/colorattribute.h>
00006 #include <vrs/constantdetail.h>
00007 #include <vrs/facestyle.h>
00008 
00009 namespace vrsode
00010 {
00011 
00012 NoShape::NoShape() : Shape()
00013 {
00014     setCollisionShape(CS_None);
00015     createDebugNode();
00016 }
00017 
00018 NoShape::~NoShape()
00019 {
00020 
00021 }
00022 
00023 void
00024 NoShape::createGeometry()
00025 {
00026 }
00027 
00028 void
00029 NoShape::createDebugNode()
00030 {
00031     debugNode()->clear();
00032     
00033     if(!debugNodeActive())
00034         return;
00035     
00036     debugNode()->append(new VRS::ColorAttribute(1.0, 0.3, 0.3, 0.3));
00037     debugNode()->append(new VRS::ConstantDetail(1, 1));
00038     debugNode()->append(
00039             new VRS::Box(VRS::Vector(-0.1, -0.1, -0.1),
00040                          VRS::Vector(0.1, 0.1, 0.1)));
00041 }
00042 
00043 }
00044 
00045 
00046 

Generated on Fri May 11 21:01:58 2007 for Random Racer by  doxygen 1.5.1