I don´t understand why the thing with stride value and glVertexPointer doesn´t work.
float Pos; //x,y,z values
float T; //texcoords
vertex *Vertices;// a lot of vertices;
stride=8bytes(one float has 4bytes and there are two in the T variable);
Why doesn´t this work?
If I declare the vertex struct without the texcoord and thet stride=0 then all works perfectly.
But if I include the texcoord and set stride=8 like mentioned above, the drawing-procces later(with gldrawelements) produces only some weird(randomly appearing) lines!
Am I misinterpreting the stride parameter?
Thanx in advance,XBTC!