[PyOpenGL-Users] experimental "buffer" protocol array support in 3.1
Brought to you by:
mcfletch
From: Antoine M. <an...@na...> - 2014-02-24 15:55:27
|
Hi, Can you expand on this new buffer protocol? Is worth using yet? I have some pixels stored in <type 'buffer'>, and at the moment I end up making a copy of the pixels to a simple python string before uploading them with glTexSubImage2D. Wouldn't it be better to use this new buffer protocol when available? (or maybe even something else?) If so, how can I easily test for the availability of the this array handler? (I've had a brief look arraydatatype.py and quickly got utterly lost..) Thanks Antoine |