Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

DefaultTexturingCreator.cpp

Go to the documentation of this file.
00001 #include "DefaultTexturingCreator.h"
00002 #include "TexturingNodes.h"
00003 
00004 using namespace X3DTK;
00005 
00006 DefaultTexturingCreator::DefaultTexturingCreator()
00007 {
00008   defineNewCreationFunction<DefaultTexturingCreator>("ImageTexture" , &DefaultTexturingCreator::createImageTexture);
00009   defineNewCreationFunction<DefaultTexturingCreator>("TextureCoordinate" , &DefaultTexturingCreator::createTextureCoordinate);
00010   defineNewCreationFunction<DefaultTexturingCreator>("X3DTexture2DNode" , 0);
00011   defineNewCreationFunction<DefaultTexturingCreator>("X3DTextureCoordinateNode" , 0);
00012   defineNewCreationFunction<DefaultTexturingCreator>("X3DTextureNode" , 0);
00013   defineNewCreationFunction<DefaultTexturingCreator>("X3DTextureTransformNode" , 0);
00014 }
00015 
00016 DefaultTexturingCreator::~DefaultTexturingCreator()
00017 {
00018 }
00019 
00020 SFNode DefaultTexturingCreator::createImageTexture() const
00021 {
00022   return new ImageTexture();
00023 }
00024 
00025 SFNode DefaultTexturingCreator::createTextureCoordinate() const
00026 {
00027   return new TextureCoordinate();
00028 }

Generated on Wed May 14 10:03:08 2003 for X3DToolKit by doxygen1.3