Re: [PyOpenGL-Users] Using glDrawElements on C-allocated data
Brought to you by:
mcfletch
From: Gordon L. K. <gl...@uc...> - 2009-06-02 10:55:19
|
Sorry for the excessive traffic ... On Jun 2, 2009, at 5:35 AM, Gordon L. Kindlmann wrote: > I agree that this is relevant, but I'm still stumped because my data > is not coming from numpy. Its coming from a C-allocated array that is > being accessed via numpy. being accessed via *ctypes*. > There is no .data_as for me. This is the important point. > I don't quite > understand the relationship between what .data_as returns, how > pyopengl's use of ctypes handles that "pointer", and how to > communicate the analogous information from array allocated in C, > outside of numpy. > > If you have any spare time, I'd be interested if you can tweak the > call to glDrawElements in > > http://people.cs.uchicago.edu/~glk/pglt/pgltDemo.py > > so that it works; I've done everything I can to make a self-contained > but non-trivial demonstration of the problem I'm having. > > Thanks, > Gordon Gordon |