I am using libgdx and have following code
float[] x;
...
Buffer vVertices=x;//what to do here?
gl.glVertexPointer(2, GL10.GL_FLOAT, 0, vVertices);
But I am not sure how I can pass array x to Buffer? Any idea?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Both ByteBuffer and FloatBuffer inherit from Buffer.