Browse Source

Added some TODOs related to buffer storage.

pull/51/head
Vladimír Vondruš 12 years ago
parent
commit
55feeb22e5
  1. 2
      src/Magnum/AbstractFramebuffer.h
  2. 4
      src/Magnum/BufferImage.h
  3. 2
      src/Magnum/Texture.h

2
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

4
src/Magnum/BufferImage.h

@ -61,6 +61,8 @@ template<UnsignedInt dimensions> 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<Dimensions, Int>::VectorType& size, const void* data, BufferUsage usage);
@ -108,6 +110,8 @@ template<UnsignedInt dimensions> 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<Dimensions, Int>::VectorType& size, const void* data, BufferUsage usage);

2
src/Magnum/Texture.h

@ -606,6 +606,8 @@ template<UnsignedInt dimensions> 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<dimensions>& image, BufferUsage usage) {
AbstractTexture::image<dimensions>(_target, level, image, usage);

Loading…
Cancel
Save