I initialized the content of my FloatBuffer
with an array of Float
once. And then modify the Floats
that I have put in, I would expect that it modifies also the values in the FloatBuffer
but I obtain a weird result.
Am I doing wrong ? Is it possible to do that ?
EDIT: My mistake, I understood that Float was immutable so this is a normal behaviour. So my question would be, is there a way to fill FloatBuffer with mutable float wrappers so that I can easily modify my FloatBuffer content by reference ? Or is there a nicer alternative to FloatBuffer for OpenGL data transfer?