有一个float[]
,我想把它作为glLoadMatrixf(FloatBuffer m)
( GLMatrixFunc的接口) 的参数。
我怎么能得到float[]
as FloatBuffer
?
代码是 -
float[] currentMatrix = {.....} ;
gl.glLoadMatrixd(currentMatrix );
以上提示——The method glLoadMatrixf(FloatBuffer) in the type GL is not applicable for the arguments (float[])