Is it possible to convert .blend or .obj file to a float array for later use for rendering in the OpenGL? For example, Vertices:
float[] vertices = {
-1, -1, 0,
// some vertices
};
Texture coordinates:
float[] texCoords = {
0, 0,
// some texture coordinates
};
Vertices indices:
float[] indices = {
0, 1, 2,
// some vertices indices
};
It would also be nice to get the type of figure that we draw:
glDrawElements(GL.GL_TRIANGLES /* type */, intbuff.capacity(), GL.GL_UNSIGNED_INT, intbuff);
Is it possible? And how can this be done?