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

GLCreatorTexturingVisitor.cpp

Go to the documentation of this file.
00001 #include "GLCreatorTexturingVisitor.h"
00002 #include "ImageTexture.h"
00003 #include "GLImageTexture.h"
00004 
00005 using namespace X3DTK;
00006 
00007 GLCreatorTexturingVisitor::GLCreatorTexturingVisitor()
00008 : TexturingVisitor()
00009 {
00010   // Enter functions.
00011   defineNewEnterFunction<GLCreatorTexturingVisitor, ImageTexture>(&GLCreatorTexturingVisitor::enterImageTexture);
00012 
00013   // GlobalVariables assignation.
00014   globalVariables = GVManager::getInstanceOf<GLCreatorGlobalVariables>();
00015 }
00016 
00017 GLCreatorTexturingVisitor::~GLCreatorTexturingVisitor()
00018 {
00019 }
00020 
00021 void GLCreatorTexturingVisitor::enterImageTexture(ImageTexture *I) const
00022 {
00023   GLImageTexture *GI = new GLImageTexture();
00024   GI->setLink(I);
00025   globalVariables->getTop()->addChild(GI);
00026   globalVariables->pushNode(GI);
00027 }
00028 

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