GLVERTEX2F (GLFLOAT, GLFLOAT) is a function that displays two parameters in the window. If you want to display two parameters in the window, the values of the parameters range from 0.0 to 1.0.

glBegin(GL_LINES):

vertex2f *(A);

glVertex2f*(A);

glVertex2f*(B);

glVertex2f * ©;

AB and CD… There will be linear connections between, but no linear connections between BC and DE

GlBegin (GL_LINE_STRIP) :

glVertex2f * (A);

glVertex2f*(B);

glVertex2f * ©;

AB and CD… There will be linear connections between BC and DE

### Read More:

- OpenGL learning notes and other learning thinking
- Summary of Python deep learning packages
- OpenGL learning — problems encountered in compiling OpenGL program for the first time
- OpenGL Usage Summary (including problems encountered and solutions)
- Summary of OpenGL simple solar system simulation
- Problems and solutions in learning opengl
- Learning notes of OpenGL — blending
- Summary of problems encountered by CodeBlocks + OpenGL
- Learning from OpenGL
- Summary of problems encountered in compiling opengl code
- Learning notes — opengl01
- OpenGL learning notes: Problems and Solutions
- Some pitfalls in OpenGL learning
- Record the problems encountered in OpenGL learning
- Summary of problems encountered in using OpenGL in QT
- 2016.11.1 OpenGL learning, black screen does not display graphics
- Some problems and solutions in learning opengl in vs2017
- Android learning notes 03: some problems and solutions in the learning process
- An example of 3D data modeling based on VB6 + OpenGL
- Drawing cube with OpenGL