How to use OpenGL3+(VAO,VBO) to draw lines with mouse click?
I’m trying to use glfw+glad to draw lines with mouse click input coordinates. At first i tried to use glBegin,glVertex2f but they seems to be no longer suppotered in OpenGL3+. So i tried to use VAO,VBO to draw lines,but the actual program doesn’t react on my click.
Progame Running:
Program Running
Here is my code: