Changes between Version 6 and Version 7 of tutorial
- Timestamp:
- Jun 26, 2013, 11:24:17 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
tutorial
v6 v7 100 100 }}} 101 101 and try to draw two wireframe triangles in a loop. Change primitive to {{{GL_LINE_LOOP}}}. 102 3. Draw two primitives with {{{GL_TRIANGLES}}}. 102 3. Draw two primitives with {{{GL_TRIANGLES}}}. [[Image(ex1-5.png, right)]] 103 103 4. Add different color to each vertex. 104 104 {{{ … … 117 117 }}} 118 118 How can we add color to vertices? See [http://www.opengl.org/sdk/docs/man2/xhtml/glColorPointer.xml glColorPointer] and [http://www.opengl.org/sdk/docs/man2/xhtml/glEnableClientState.xml glEnableClientState]. 119 6. Change background to {{{glClearColor(0.9,1,1,1.0);}}}