1
Feature requests / Image non const byte access
« on: March 28, 2012, 11:23:19 pm »
Hi,
There is a method GetPixelsPtr that can be used to write image data to ogl, but I haven't yet found a way to read from ogl back into an image. It seems the only way to do this is to create a temp memory buffer, read into this buffer, then use Image::Create to copy from this temp buffer.
What would be nice is the ability to construct an empty
There is a method GetPixelsPtr that can be used to write image data to ogl, but I haven't yet found a way to read from ogl back into an image. It seems the only way to do this is to create a temp memory buffer, read into this buffer, then use Image::Create to copy from this temp buffer.
What would be nice is the ability to construct an empty
Image(width, height)
that would call myPixels.reserve(width * height * 4)
Then have Uint8* GetPixelsPtr() { return &myPixels[0]; }