[Solved] Errors encountered when using VS to write opengl code

Record the errors encountered when writing opengl code using vs:
error: the following is a new check for glut 3.0; Update your code.
after checking for a long time, it is found that this may be the reason why the portal
does not write the callback function of the window

write the callback function yourself


Among them, display is the calling function written by yourself, for example:

glutDisplayFunc(DrawOval);//Draw callback function, glut mechanism, it will be executed when it feels the need to redraw

The drawOval here is the function I wrote to draw an ellipse

Read More: