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 
00003 
00005 
00006 
00011 
00016 
00021 //                            GLImageTexture.h                                //
00023 
00024 #ifndef GLIMAGETEXTURE_H
00025 #define GLIMAGETEXTURE_H
00026 
00027 #include "X3DGLTexture2DNode.h"
00028 
00029 namespace X3DTK {
00030 namespace GL {
00031 
00032 class ImageTexture;
00033 
00036 
00037 class ImageTexture : public X3DTexture2DNode
00038 {
00039 public:
00041   ImageTexture();
00043   virtual SFNode clone() const;
00045   virtual ~ImageTexture();
00046   
00048   void setTexName(GLuint texName);
00049   
00051   inline const GLuint &getTexName() const {return _texName;};
00053   const float (&getTextureTransform() const)[16] {return _textureTransform;};
00054 
00056   virtual void update();
00058   virtual void render() const;  
00059   
00060 protected:  
00062   ImageTexture(const ImageTexture &I);
00063 
00064 private:  
00066   GLuint _texName;
00068   float _textureTransform[16];
00069 };
00070 
00071 }
00072 }
00073 
00074 #endif

Generated on Wed Sep 10 11:25:13 2003 for X3DToolKit by doxygen1.3