Record the errors encountered when writing opengl code using vs:
problem:
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
Solution:
write the callback function yourself
glutDisplayFunc(&display);
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