Re: [PyOpenGL-Users] glVertexAttribPointer(); loading platform-specific functions
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2009-08-16 22:38:53
|
Joshua Davis wrote: ... > I now have two versions of my program. The first uses the legacy > glVertexPointer() stuff and works perfectly. The second is altered, > as little as possible, so that it uses the modern > glVertexAttribPointer() stuff instead. It raises no errors but > generates no fragments. Here is the glVertexPointer() version of the > two crucial functions... > I don't see any obvious problems with the attribute-based version. I've done some minimal modifications to create a working full script. I had to add some perspective and translation setup (to move the geometry back from the viewer). Please consider trying to create this kind of runnable script when reporting errors, I'm rather short on time to work on PyOpenGL and recreating scripts takes time I should be putting into other tasks. HTH, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |