0b3ea346ff9e6b97af9dc67e768a4aec080c671d
[occt.git] / src / OpenGl / OpenGl_ResourceTexture.hxx
1 // File:      OpenGl_ResourceTexture.hxx
2 // Created:   18.03.11 9:40:00
3 // Author:    Anton POLETAEV
4
5 #ifndef _OPENGL_RESOURCETEXTURE_H
6 #define _OPENGL_RESOURCETEXTURE_H
7
8 #include <OpenGl_Resource.hxx>
9 #include <Standard.hxx>
10
11 class OpenGl_Resource;
12
13 //! OpenGl_ResourceTexture represents the texture resource
14 //! for OpenGl_ResourceCleaner
15 class OpenGl_ResourceTexture : public OpenGl_Resource 
16 {
17
18 public:
19
20   //! Constructor
21   OpenGl_ResourceTexture(GLuint theId);
22
23   //! Copy constructor
24   OpenGl_ResourceTexture(const OpenGl_ResourceTexture& theResource);
25
26   //! Destructor
27   ~OpenGl_ResourceTexture() { }
28
29 protected:
30
31   //! Clean procedure for texture resource;
32   //! Should be called by the OpenGl_ResourceCleaner
33   virtual void Clean (const Handle(OpenGl_Context)& theGlContext);
34
35 };
36
37 #endif