Login  Register

Re: How do you create a VAO object in JOGL (java) to use with shaders

Posted by gouessej on Feb 11, 2016; 10:16am
URL: https://forum.jogamp.org/How-do-you-create-a-VAO-object-in-JOGL-java-to-use-with-shaders-tp4036166p4036177.html

elect wrote
I'd suggest you to always go with the arrays, they are faster and easier to manipulate
Rather always use direct NIO buffers because JOGL is forced to create them under the hood when you pass arrays or indirected NIO buffers and using NIO buffers isn't very difficult. Java arrays aren't faster than NIO buffers but the creation of a direct NIO buffer takes much time than the creation of an array. The methods accepting arrays are there only for compatibility, it's just some syntactic sugar.
Julien Gouesse | Personal blog | Website