Re: [Plib-devel] ssgVtxArray fixes.
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-08-08 03:55:21
|
"Vallevand, Mark K" wrote: > > I'll try it ASAP. I wrote the ssgVtxArray, and use it a lot. I'm glad > that you found and fixed the problems. I haven't looked at the code for > some time. > > As for index arrays of 'int', that is just ignorance. If the OpenGL > calls will take arrays of 'short', I see no problem with that change. Yep - when you called 'glDrawElements' you said: glDrawElements ( gltype, num_vertices, GL_UNSIGNED_INT, ii ) ; ^^^^^^^^^^^^^^^ Change this to GL_UNSIGNED_SHORT ..you can also pass GL_UNSIGNED_BYTE - but I think that's *too* small. This would be a non-reverse-compatible change though - how many people are using ssgVtxArray and would be upset by such a change? -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net |