Re: [PyOpenGL-Users] glVertexAttribPointer(); loading platform-specific functions
Brought to you by:
mcfletch
From: Ian M. <geo...@gm...> - 2009-08-13 18:35:09
|
On Thu, Aug 13, 2009 at 7:38 AM, Paulo Silva <nit...@gm...> wrote: > > vertexBufferObject = vbo.VBO(...) > > gl.glVertexAttribPointer(positionLocation, 3, GL_FLOAT, False, 24, > > vertexBufferObject) > > > > The second line generates this error: > > > > ctypes.ArgumentError: argument 6: <type 'exceptions.TypeError'>: > > Don't know how to convert parameter 6 > > You might try this code, adapted from my code, which makes use of vertex attributes for normal mapping: vertex_attrib_vbo.bind() glVertexAttribPointer(location,4,GL_FLOAT,GL_FALSE,0,None) The last argument could probably also be 0. Ian |