OpenCOVER
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
15namespace vrui
16{
17
18class OSGVRUIEXPORT OSGVruiTexture : public vruiTexture
19{
20public:
21 OSGVruiTexture(osg::Texture2D *texture)
22 {
23 this->texture = texture;
24 }
25
27 {
28 }
29
30 osg::Texture2D *getTexture()
31 {
32 return texture;
33 }
34
35private:
36 osg::Texture2D *texture;
37};
38}
39#endif
collaborative interface manager
Definition: coVRCommunication.h:41
Userdata that can be attached to Nodes in the scenegraph.
Definition: vruiTexture.h:18
Definition: OSGVruiTexture.h:19
osg::Texture2D * getTexture()
Definition: OSGVruiTexture.h:30
OSGVruiTexture(osg::Texture2D *texture)
Definition: OSGVruiTexture.h:21
virtual ~OSGVruiTexture()
Definition: OSGVruiTexture.h:26