1 #ifndef _UNIQUE_TEXTURE_H
2 #define _UNIQUE_TEXTURE_H 1
4 // A wrapper around an OpenGL texture that is automatically deleted.
5 // Used only by ImageInput.
10 struct TextureDeleter {
11 void operator() (GLuint *tex)
13 glDeleteTextures(1, tex);
18 typedef std::unique_ptr<GLuint, TextureDeleter> RefCountedTexture;
20 #endif // !defined(_REF_COUNTED_TEXTURE)