I added the values from the fbx file to these arrays.
Code:
verts : array [0..11] of GLfloat = (
-2.5,-2.5,2.5, -2.5,2.5,2.5, 2.5,-2.5,2.5, -2.5,-2.5,-1.69999992847443
);
texCoord : array [0..11] of GLfloat = (
0.00744416890665889,0.915632724761963,
0.00744416890665889,0.468982636928558,
0.454094290733337,0.468982636928558,
0.355433821678162,0.454094290733337,
0.838598906993866,0.00744416890665889,
0.355433821678162,0.00744416890665889
);
v_index : array [0..5] of GLInt = (1,0,2,3,2,0);
If you like, the source is [here] so you can check what I did.
Bookmarks