experimental "buffer" protocol array support in 3.1
Antoine Martin <[email protected]> Mon, 24 Feb 2014 22:36:31 +0700
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <[email protected]> |
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 ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ PyOpenGL Homepage http://pyopengl.sourceforge.net