1 #ifndef _REF_COUNTED_TEXTURE_H
2 #define _REF_COUNTED_TEXTURE_H 1
4 // A wrapper around an OpenGL texture that is automatically deleted.
9 struct TextureDeleter {
10 void operator() (GLuint *tex)
12 glDeleteTextures(1, tex);
17 typedef std::unique_ptr<GLuint, TextureDeleter> RefCountedTexture;
19 #endif // !defined(_REF_COUNTED_TEXTURE)