Changes between Version 2 and Version 3 of opengl-intro
- Timestamp:
- Jul 1, 2013, 3:06:03 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
opengl-intro
v2 v3 283 283 readability and portability of the OpenGL programs. Before providing vertex 284 284 position one can change OpenGL engine primitive state such as current 285 drawing {{{glColor3f " or "glNormal}}} that is per vertex property.285 drawing {{{glColor3f}}} or {{{glNormal}}} that is per vertex property. 286 286 287 287 The last command in the {{{display}}} subroutine is {{{glutSwapBuffers()}}}. For … … 293 293 buffer is ready for display we simply flip the buffers. In particular it 294 294 should be noted that such behaviour is system dependent and once upon a 295 time when the {{{GLUT_SINGLE " (without double buffers) with the "glFlush()}}}295 time when the {{{GLUT_SINGLE}}} (without double buffers) with the {{{glFlush()}}} 296 296 at the end was used instead. Nowadays {{{GLUT_DOUBLE}}} is usually used, which 297 297 is most helpful with high frame-rate applications such as animation. … … 318 318 using first and last vertex to create a triangle fan. 319 319 == Modern OpenGL == 320 Immediate mode programming with {{{glBegin " and "glEnd}}} was removed from320 Immediate mode programming with {{{glBegin}}} and {{{glEnd}}} was removed from 321 321 OpenGL 3.x as such transmission of vertex streams and its attributes 322 322 (colors, normals, ...) from system memory to GPU is considered as a major … … 330 330 transforming world coordinates into viewport. Transformations of coordinate 331 331 systems in 3D space allowed manipulate model stack easily with 332 {{{glPushMatrix " and "glPopMatrix}}} commands. But similarly to333 {{{glBegin "/"glEnd}}} such manipulations are not used outside GPU anymore.332 {{{glPushMatrix}}} and {{{glPopMatrix}}} commands. But similarly to 333 {{{glBegin}}}/{{{glEnd}}} such manipulations are not used outside GPU anymore. 334 334 Instead all operations on vertex data is transferred to ''vertex shader''. 335 335 There operations on data can be performed with standard vector