Re: [PyOpenGL-Users] vertex/texture arrays
Brought to you by:
mcfletch
|
From: Frank R. <cra...@gm...> - 2002-01-07 20:55:34
|
On Sun, Jan 06, 2002 at 11:13:24AM -0600, Tarn Weisner Burton wrote: > All the PyOpenGL functions are documented in merged man pages at > http://pyopengl.sourceforge.net/documentation/manual/ > > Although the only the prototypes for the decorated functions > (glVertexPointerf, etc.) are given in the man pages, they are described > in more detail in the user's manual. This documentation is also > distributed with 2.0, with the exception of the merged man pages which > will be included in the next version. I've checked these but couldn't really get anything new from it. > In short, glVertexPointer is like the C function in that it takes a > Python string and it respects the stride arguments (in the future it may > use the buffer protocol also), whereas glVertexPointerf uses a Python > array (or Numeric) and doesn't need stride arguments. How exactly does the string have to look like? I tried having a list vertices = [] and calling vertices.extend([x,y,z]) for each vertex, then did a repr(vertices)[1:-1].replace(',','') to get a string of successive "x1 y1 z1 x2 y2 z2.." vertices, but that didn't work at all with glVertexPointer. > Sorry, haven't figured out the INVALID_OPERATION problem yet. :( This is giving me a headache as I just can't get any more info out. I don't know what to check, why it is invalid.. nothing. Thanks for your help, -- Raiser, Frank aka CrashChaos IRC: irc.openprojects.net #pygame |