Re: [PyOpenGL-Users] vertex/texture arrays
Brought to you by:
mcfletch
|
From: Frank R. <cra...@gm...> - 2002-01-08 08:51:15
|
On Tue, Jan 08, 2002 at 12:06:25AM -0500, Mike C. Fletcher wrote: > The format for the string versions of array functions is the same as for > a C array. That is, it's the internal format of the array (not how you > would write it in a C program). For instance, the point (1.0, 2.0, 3.0) > would be represented as: > > '\x00\x00\x00\x00\x00\x00\xf0?\x00\x00\x00\x00\x00\x00\x00@\x00\x00\x00\x00\x00\x00\x08@' > (with \x00 meaning a byte with the value (hexidecimal) 0, \x08 being a > byte with character number 8, etceteras) Ok thanks. I'm gonna try using this if I can't get glTexCoordPointerf to work. > So, how do you use those functions? Well, here's an example: I already got everything working with the vertex and color arrays. My only problem is that the call to glTexCoordPointerf returns an invalid operation error. The rest works splendidly. Although I wonder if using glTexCoordPointer with a struct generated string will not just repeat that error. I'm gonna take a look at this later. Thanks for your help, -- Raiser, Frank aka CrashChaos IRC: irc.openprojects.net #pygame Windows is the one true OS. MS invented the GUI. MS invented the 32 bit OS. MS is open and standard. MS loves you. We have always been at war with Oceana. |