From: Peter A. <kaf...@xt...> - 2003-07-01 12:20:17
|
Peter Ashford wrote: > Does anyone have a jogl glVertexPointer / glDrawElements example I > could have a look at? I have coded these in C++ but can't get them > going in Java/Jogl. I suspect that I might have done something wrong > with the use of buffers.... > > Can anyone help? > > Cheers, > > Peter. > Ahh, great! Discovered the answer to my problem a few minutes after posting... Isn't that always the way ;-) If anyone's interested - my problem was not calling ByteBuffer.order(ByteOrder.nativeOrder()) on my direct byte buffers prior to converting them to float buffers. I should have recognised the potential byte ordering problem the first time round, but there you go ;-) Peter. |