Login  Register

Re: Good news

Posted by gouessej on Sep 08, 2014; 10:10am
URL: https://forum.jogamp.org/Good-news-tp4033046p4033086.html

adi should have called this method:
http://jogamp.org/deployment/jogamp-next/javadoc/gluegen/javadoc/com/jogamp/common/nio/Buffers.html#newDirectByteBuffer(int)

which takes care of the native byte order. com.jogamp.common.nio.Buffers should always be used to create direct NIO buffers for JOGL except when the design of an engine doesn't allow you to do so (then you have to do exactly the same operations in your own code).
Julien Gouesse | Personal blog | Website