Hi guys,
I used OpenGL server side to render lines and it worked fine as expected. Now I converted them to server side. Now they render Vertically straight rather than horizontal. Any reason why? Please any help. My client code is below:
glEnableClientState(GL_VERTEX_ARRAY);
//Upload the data to graphics card
for (int j = 0; j < 200; j++)
{
//m_sArray is an array of size 200 and m_position is a set of 3. Holding x, y, z.
glVertexPointer(3, GL_FLOAT, 0, &pElement->m_sArray[j].m_position);
}
glDrawArrays(GL_LINES, 0, 3);
glDisableClientState(GL_VERTEX_ARRAY);
Many thanks