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

GLImageTexture.h

Go to the documentation of this file.
00001 
00002 //                            GLImageTexture.h                                //
00004 
00005 #ifndef GLIMAGETEXTURE_H
00006 #define GLIMAGETEXTURE_H
00007 
00008 #include "X3DGLTexture2DNode.h"
00009 
00010 namespace X3DTK {
00011 namespace GL {
00012 
00013 class ImageTexture;
00014 
00017 
00018 class ImageTexture : public X3DTexture2DNode
00019 {
00020 public:
00022   ImageTexture();
00024   virtual SFNode clone() const;
00026   virtual ~ImageTexture();
00027   
00029   void setTexName(GLuint texName);
00031   void setTextureTransform(const MFFloat &textureTransform);
00032   
00034   inline const GLuint &getTexName() const {return _texName;};
00036   inline const MFFloat &getTextureTransform() const {return _textureTransform;};
00037 
00039   virtual void update();
00041   virtual void render() const;  
00042   
00043 protected:  
00045   ImageTexture(const ImageTexture &I);
00046 
00047 private:  
00049   GLuint _texName;
00051   MFFloat _textureTransform;
00052 };
00053 
00054 }
00055 }
00056 
00057 #endif

Generated on Tue Jul 15 16:46:51 2003 for X3DToolKit by doxygen1.3