を持っていて、それを ( GLMatrixFuncのインターフェース) のfloat[]
引数として入れたいと思います。glLoadMatrixf(FloatBuffer m)
どうすればfloat[]
asを取得できFloatBuffer
ますか?
コードは -
float[] currentMatrix = {.....} ;
gl.glLoadMatrixd(currentMatrix );
上記のプロンプト -The method glLoadMatrixf(FloatBuffer) in the type GL is not applicable for the arguments (float[])