Changes between Version 2 and Version 3 of opengl-intro


Ignore:
Timestamp:
Jul 1, 2013, 3:06:03 PM (11 years ago)
Author:
leon
Comment:

fix

Legend:

Unmodified
Added
Removed
Modified
  • opengl-intro

    v2 v3  
    283283readability and portability of the OpenGL programs. Before providing vertex
    284284position one can change OpenGL engine primitive state such as current
    285 drawing {{{glColor3f" or "glNormal}}} that is per vertex property.
     285drawing {{{glColor3f}}} or {{{glNormal}}} that is per vertex property.
    286286
    287287The last command in the {{{display}}} subroutine is {{{glutSwapBuffers()}}}. For
     
    293293buffer is ready for display we simply flip the buffers. In particular it
    294294should be noted that such behaviour is system dependent and once upon a
    295 time when the {{{GLUT_SINGLE" (without double buffers) with the "glFlush()}}}
     295time when the {{{GLUT_SINGLE}}} (without double buffers) with the {{{glFlush()}}}
    296296at the end was used instead. Nowadays {{{GLUT_DOUBLE}}} is usually used, which
    297297is most helpful with high frame-rate applications such as animation.
     
    318318  using first and last vertex to create a triangle fan.
    319319== Modern OpenGL ==
    320 Immediate mode programming with {{{glBegin" and "glEnd}}} was removed from
     320Immediate mode programming with {{{glBegin}}} and {{{glEnd}}} was removed from
    321321OpenGL 3.x as such transmission of vertex streams and its attributes
    322322(colors, normals, ...) from system memory to GPU is considered as a major
     
    330330transforming world coordinates into viewport. Transformations of coordinate
    331331systems in 3D space allowed manipulate model stack easily with
    332 {{{glPushMatrix" and "glPopMatrix}}} commands. But similarly to
    333 {{{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.
    334334Instead all operations on vertex data is transferred to ''vertex shader''.
    335335There operations on data can be performed with standard vector