From 55feeb22e56e119ab7839ecde7f569d0a5b0784c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 23 Apr 2014 21:10:51 +0200 Subject: [PATCH] Added some TODOs related to buffer storage. --- src/Magnum/AbstractFramebuffer.h | 2 ++ src/Magnum/BufferImage.h | 4 ++++ src/Magnum/Texture.h | 2 ++ 3 files changed, 8 insertions(+) diff --git a/src/Magnum/AbstractFramebuffer.h b/src/Magnum/AbstractFramebuffer.h index 1f279f9a9..dfa05dc66 100644 --- a/src/Magnum/AbstractFramebuffer.h +++ b/src/Magnum/AbstractFramebuffer.h @@ -314,6 +314,8 @@ class MAGNUM_EXPORT AbstractFramebuffer { * See @ref read(const Vector2i&, const Vector2i&, Image2D&) for more * information. * @requires_gles30 Pixel buffer objects are not available in OpenGL ES 2.0. + * @todo Make it more flexible (usable with + * @extension{ARB,buffer_storage}, avoiding relocations...) */ void read(const Vector2i& offset, const Vector2i& size, BufferImage2D& image, BufferUsage usage); #endif diff --git a/src/Magnum/BufferImage.h b/src/Magnum/BufferImage.h index 651e15f15..6715d579f 100644 --- a/src/Magnum/BufferImage.h +++ b/src/Magnum/BufferImage.h @@ -61,6 +61,8 @@ template class BufferImage: public AbstractImage { * * Note that the image data are not copied on construction, but they * are deleted on class destruction. + * @todo Make it more flexible (usable with + * @extension{ARB,buffer_storage}, avoiding relocations...) */ explicit BufferImage(ColorFormat format, ColorType type, const typename DimensionTraits::VectorType& size, const void* data, BufferUsage usage); @@ -108,6 +110,8 @@ template class BufferImage: public AbstractImage { * Updates the image buffer with given data. The data are not deleted * after filling the buffer. * @see @ref Buffer::setData() + * @todo Make it more flexible (usable with + * @extension{ARB,buffer_storage}, avoiding relocations...) */ void setData(ColorFormat format, ColorType type, const typename DimensionTraits::VectorType& size, const void* data, BufferUsage usage); diff --git a/src/Magnum/Texture.h b/src/Magnum/Texture.h index c1de9599b..84802999e 100644 --- a/src/Magnum/Texture.h +++ b/src/Magnum/Texture.h @@ -606,6 +606,8 @@ template class Texture: public AbstractTexture { * * See @ref image(Int, Image&) for more information. * @requires_gl %Texture image queries are not available in OpenGL ES. + * @todo Make it more flexible (usable with + * @extension{ARB,buffer_storage}, avoiding relocations...) */ void image(Int level, BufferImage& image, BufferUsage usage) { AbstractTexture::image(_target, level, image, usage);