Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Babalas

Pages: [1]
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
Image(width, height)
that would call
myPixels.reserve(width * height * 4)
Then have
Uint8* GetPixelsPtr() { return &myPixels[0]; }

Pages: [1]
anything