X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=shared%2Fref_counted_texture.h;fp=shared%2Fref_counted_texture.h;h=240bf869c62cba3d5ae55fdf837025832844943a;hp=20d0e5abae0eba26678ed8d4a07cad1f1d85a7d3;hb=adc0df09f7a9dc88a3c0dbad47a21a805e728862;hpb=02ea864dc5a6dde7450c497581ff18d784ab832c diff --git a/shared/ref_counted_texture.h b/shared/ref_counted_texture.h index 20d0e5a..240bf86 100644 --- a/shared/ref_counted_texture.h +++ b/shared/ref_counted_texture.h @@ -14,6 +14,10 @@ struct TextureDeleter { } }; -typedef std::unique_ptr RefCountedTexture; +typedef std::unique_ptr UniqueTexture; +typedef std::shared_ptr 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)