有一个float[],我想把它作为glLoadMatrixf(FloatBuffer m) (GLMatrixFunc接口)的参数。
我怎样才能得到float[]作为FloatBuffer?
密码是-
float[] currentMatrix = {.....} ;
gl.glLoadMatrixd(currentMatrix ); 以上提示- The method glLoadMatrixf(FloatBuffer) in the type GL is not applicable for the arguments (float[])
发布于 2013-09-20 13:41:59
float[] floatArray = ...;
FloatBuffer floatBuffer = FloatBuffer.wrap(floatArray);https://stackoverflow.com/questions/18918274
复制相似问题