From: Sven G. <sgo...@ja...> - 2001-12-08 00:06:35
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 26 November 2001 19:44, pet...@ba... wrote: > Hello, > > I have an application which would be very hard to restructure to just > use glDrawArrays, so I've been forced to use glDrawElements instead. > > The third parameter for glDrawElements has to be one of either > GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT or GL_UNSIGNED_INT. > > Java doesn't have any unsigned data types, so this method dies a death > when the signed data is read as unsigned, it becomes massive and the > native code tries to read beyond the end of the array. well, kenneth said everything about this, but i just wanted to point to the doc's http://gl4java.sourceforge.net/docs/html/glj_node15.html#SECTION00421100000000000000 ;-) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8EVmAHdOA30NoFAARApnCAKCrMC5FxJbsB0p+iOEseTCU1gjVRwCglz7f HMCJXVPT90i6O4cJQ5mlylo= =XzCa -----END PGP SIGNATURE----- |