Hi ,I am porting MSAA feature from C++ OpenGL 3.3 .But I see that FloatBuffer can't accept 2 dimensional arrays?
Here is my source code in C++ :
glBufferData(GL_TEXTURE_BUFFER_ARB, sizeof(float)*8, sampleWeights, GL_DYNAMIC_DRAW);
where sampleWeights is float array. It must be 2 dimensional as it holds 16 sample arrays for 16 sample points .(MSAA x16 level) How do I do it in Java? May be I should pass into FloatBuffer only the first element ? or put it all into a regular float ? I mean how do I fill such a data into texture buffer when FloatBuffer in java doesn't accept 2 dimensional arrays ?