cginternals / globjects

C++ library strictly wrapping OpenGL objects.
https://globjects.org
MIT License
539 stars 59 forks source link

Add a member function to load image data from pixel unpack buffer #342

Closed scheibel closed 5 years ago

scheibel commented 5 years ago

This would include a duplication of all imageData (and probably imageStorage) functions. As a workaround, use this template instead: /* assume texture and pbo to a validly configured Texture and Buffer */ pbo->bind(GL_PIXEL_UNPACK_BUFFER); texture->[imageFunction]([parameters], nullptr); pbo->unbind(GL_PIXEL_UNPACK_BUFFER);