]> git.sesse.net Git - nageru/blobdiff - shared/ref_counted_texture.h
Change Futatabi frames to be cached as textures instead of in system memory.
[nageru] / shared / ref_counted_texture.h
index 20d0e5abae0eba26678ed8d4a07cad1f1d85a7d3..240bf869c62cba3d5ae55fdf837025832844943a 100644 (file)
@@ -14,6 +14,10 @@ struct TextureDeleter {
        }
 };
 
-typedef std::unique_ptr<GLuint, TextureDeleter> RefCountedTexture;
+typedef std::unique_ptr<GLuint, TextureDeleter> UniqueTexture;
+typedef std::shared_ptr<GLuint> RefCountedTexture;
+
+// TODO: consider mipmaps.
+RefCountedTexture create_texture_2d(GLuint width, GLuint height, GLenum internal_format, GLenum format, GLenum type, const GLvoid *pixels);
 
 #endif  // !defined(_REF_COUNTED_TEXTURE)