Function glVertex2f

  • glVertex commands are used within glBegin/glEnd pairs to specify point, line, and polygon vertices. The current color, normal, texture coordinates, and fog coordinate are associated with the vertex when glVertex is called.

    When only 𝐱 and 𝐲 are specified, 𝐳 defaults to 0 and 𝐰 defaults to 1. When 𝐱, 𝐲, and 𝐳 are specified, 𝐰 defaults to 1.

    Parameters

    • x: number

      Specify x coordinate of the vertex.

    • y: number

      Specify y coordinate of the vertex.

    Returns void

    Summary

    specify a vertex

    See

    glVertex

Generated using TypeDoc