Changes between Version 3 and Version 4 of tutorial
- Timestamp:
- Jun 26, 2013, 10:16:11 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
tutorial
v3 v4 85 85 86 86 87 == = Exercise #1: ===87 == Exercise #1: == 88 88 1. Add RGB color to vertices with {{{ glColor3f(1.0, 0.4, 1.0);}}}. 89 2. Replace single line drawing in {{{display }}} with the following snippet89 2. Replace single line drawing in {{{display()}}} with the following snippet 90 90 {{{ 91 91 #!c … … 101 101 and try to draw two wireframe triangles in a loop. Change primitive to {{{GL_LINE_LOOP}}}. 102 102 3. Draw two primitives with {{{GL_TRIANGLES}}}. 103 4. Add different color to each vertex. 104 {{{ 105 #!c 106 GLfloat color[][3] = { 107 {1, 0, 0}, {0, 1, 0}, {0, 0, 1}, 108 {1, 1, 0}, {0, 1, 1}, {1, 0, 1}}; 109 }}} 103 110 104