News

That is, the normal array defines normals for the last vertex of each triangle, starting with vertex 3, the last vertex to draw triangle 1.<BR><BR>But this doesn't seem to work right.
Drawing a Triangle. Now it's time for some real OpenGL code. The code in Listing 1, when executed, draws a triangle on-screen using OpenGL. Listing 1. triangle.cc // Programmer: Mihalis Tsoukalos // ...