I am making a terrain editor and I have two questions regarding triangle strips and point of view.
1. The triangle strips:
I wonder why it's not;
glBegin(GL_TRIANGLE_STRIP);
// The first(0) triangle strip
// texture coord and vertex.
glTexCoord2f(texuCoords[0], texvCoords[0]);
glVertex3f(gridxPoints[0], gridyPoints[0], heightPoints[0]);
// The second(1) triangle strip
// texture coord and vertex.
glTexCoord2f(texuCoords[1], texvCoords[1]);
glVertex3f(gridxPoints[1], gridyPoints[1], heightPoints[1]);
// The third(2) triangle strip
// texture coord and vertex.
glTexCoord2f(texuCoords[2], texvCoords[2]);
glVertex3f(gridxPoints[2], gridyPoints[2], heightPoints[2]);
// The following tex coord and vertices
glTexCoord2f(texuCoords[3], texvCoords[3]);
glTexCoord2f(texuCoords[4], texvCoords[4]);
glTexCoord2f(texuCoords[5], texvCoords[5]);
glVertex3f(gridxPoints[3], gridyPoints[3], heightPoints[3]);
glEnd();
since that it was said that it saves vertex calls.
2. Point of view:
How can I set the position and directions of the terrain view?
With;
GLfloat ViewPos[3];
GLfloat viewDir[3];
I've googled with "setting direction" and search the forum with the same and "how to set direction".
Thanks in advance.