When using glReadPixels in combinations with pixel buffer
(PBOs) the last (C) argument is no longer the address of
move the data to, but an offset from the currently defined buffer
As a trivial example it is connon to use:
Which causes the data to be copied to the base (0 offset) of the
currently defined PBO.
Of course, in pyOpengl this does not seem doable, as the
handled internally, and the last argument is not exposed.
Is it possible that we could have new versions of the affected
exposed that do take the last argument?
Perhaps a glReadPixelsB (for buffer) or something like that?
(glWritePixels has the same limitation).
PBOs are a very important feature for using openGL in image
processing, so this would be a very useful addition.
It would also allow glReadPixels to be used from python in
where the overhead of the double data copy currently required for
(much easier to use) current implementation is too much when
through bounce buffers.
Log in to post a comment.