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
Read More:
- Run real machine Errors were encountered while preparing your device for development. Please check the Devices
- django Internal server error 500 Modify source code to view print errors
- Vuex Use Prettier – Code formatter to format errors [How to Solve]
- [Solved] Docker compose error: ERROR: Encountered errors while bringing up the project.
- Vs code execute command error [How to Solve]
- [Solved] Mac VS Code fatal error: ‘bits/stdc++.h‘ file not found
- TensorRT model quantization error: Error Code 1: Cuda Runtime (an illegal memory access was encountered)
- Eclipse start project error: Errors occurred during the build. Errors running builder ‘Integrated External Tool Builder’ on…
- [Solved] error c101008d: Failed to write the updated manifest to the resource of file
- Cli Write Error: This is related to npm not being able to find a file. [Solved]
- Axios request failed, get the status code and error information, how to encapsulate the function dealing with the public error code
- How to Solve Go Error: concurrent map iteration and map write
- How to Fix the common Warning Errors after Vue Project Startup
- [Solved] matlab error: try to write SCRIPT vl_sift is executed as a function
- Kettle reported an error and did not have permission to write files to HDFS
- Proguard Packaging Error: You have to specify ‘-keep‘ options if you want to write out kept elements with ‘-print
- Solution of socket write error caused by pressing F5 to refresh page by ehcache user
- How to Configure OpenFPGA Environment (Probable Errors & Their Solutions)
- [Solved] Failed to compile with 1 errors
- rsyslog Write into Log File Error [How to Solve]