Re: upcoming semantical change for buffer operations
Posted by Wibowit on Mar 14, 2011; 7:20pm
URL: https://forum.jogamp.org/upcoming-semantical-change-for-buffer-operations-tp2519021p2677024.html
What about a situation where buffer contains interleaved data of different types? Using byte offsets would make more sense there.
If your semantic changes aren't consistent and we would have to mix elements with bytes then I'm against that changes. Primitives in Java have always the same size, no matter what the platform or Java version number, so we can even not use constants but literals, ie instead of offset * SizeofFloat, we can use offset * 4.
Did you change the semantic already?