Original Post
hello, I have quite a trouble with rendering texture coordinates in opengl. I use VBO objects and glDrawElements() for drawing my indexed geometry. But I just have no idea on how to order up my texture coordinates info in order to pass it to hardware and have glDrawElements() funstion draw model correctly. For now I have 3*numoftriangles texture coords vectors ordered in a pattern of indicies but the drawing function renders incorrect messed up result. What is a correct way of building up a texture coords vectors array?How many TXc vectors are there needed and how are they ordered for an indexed geometry using glDrawElements?