OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OSGVruiTexture.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 #ifndef OSG_VRUI_TEXTURE_H
9 #define OSG_VRUI_TEXTURE_H
10 
12 
13 #include <osg/Texture2D>
14 
15 namespace vrui
16 {
17 
18 class OSGVRUIEXPORT OSGVruiTexture : public vruiTexture
19 {
20 public:
21  OSGVruiTexture(osg::Texture2D *texture)
22  {
23  this->texture = texture;
24  }
25 
26  virtual ~OSGVruiTexture()
27  {
28  }
29 
30  osg::Texture2D *getTexture()
31  {
32  return texture;
33  }
34 
35 private:
36  osg::Texture2D *texture;
37 };
38 }
39 #endif
osg::Texture2D * getTexture()
Definition: OSGVruiTexture.h:30
Userdata that can be attached to Nodes in the scenegraph.
Definition: vruiTexture.h:17
virtual ~OSGVruiTexture()
Definition: OSGVruiTexture.h:26
OSGVruiTexture(osg::Texture2D *texture)
Definition: OSGVruiTexture.h:21
Definition: OSGVruiTexture.h:18