Introduction - If you have any usage issues, please Google them yourself
Using Bresenham line drawing algorithm to achieve horizontal, vertical, slope greater than 1, slope is less than 1, slope is positive, slope is negative, and so on, and can not directly call OpenGL line function.