0
float coords[] = {
0.0f, 0.0f, 0.0f,
0.0f, 1.0f, 0.0f,
1.0f, 1.0f, 0.0f,
1.1f, 2.3f, 0.0f,
}
나는 플로트로 간단한 좌표 배열을 가지고 있습니다. 어떻게 GL_SHORT로 변환 할 수 있습니까?Android GL_FLOAT를 OpenGL ES 버텍스 배열에서 GL_SHORT로 변환
이렇게하지 마십시오. gl.glVertexPointer (dimension, GL10.GL_FLOAT, 0, mVertexBuffer);
그러나 : gl.glVertexPointer (dimension, GL10.GL_SHORT, 0, mVertexBuffer_short);