Be free and at leisure started to research OpenGL, went to buy the Little Red Book 8 edition, the content of the book is based on Windows, and Mac can use the version is very low, OpenGL is up to 4.1, GLSL is 1.2 for me.
When we ran the first demo, we had a problem. The book used a FreeGLUT (a third-party library that can be used across platforms), and a FreeGLUT library on the Mac would not be able to compile the shader, so there were two ways to solve it
1: Use your own #include <; GLUT/GLUT.h> Instead of, and in glutInitDisplayMode (GLUT_RGBA | GLUT_3_2_CORE_PROFILE); Adds the specified version to 2. Use another third-party library, GLFW, to set the version number, which can be cross-platform
When we ran the first demo, we had a problem. The book used a FreeGLUT (a third-party library that can be used across platforms), and a FreeGLUT library on the Mac would not be able to compile the shader, so there were two ways to solve it
1: Use your own #include <; GLUT/GLUT.h> Instead of, and in glutInitDisplayMode (GLUT_RGBA | GLUT_3_2_CORE_PROFILE); Adds the specified version to 2. Use another third-party library, GLFW, to set the version number, which can be cross-platform
Read More:
- Spring cloud is a big hole. Failed to start bean ‘eurekaAutoServiceRegistration’
- Configuring OpenGL environment on Mac OS
- How to uninstall CUDA driver and toolkit in Mac OS X?
- The solution of GDB code designed problem in Mac OS X
- Mac OS error in make pycaffe times failure error:’python.h’file not found resolved
- Open vs code through terminal using code command in Mac OS
- Instability of Mac OS finder
- Installing nmap on Mac OS
- Error prompt of MAPP opening PHP under Mac OS
- Error: Command ‘/ usr / bin / clang’ failed with exit status 1 solution for Mac OS installation
- sys.path.append(), os.path.exists(), os.path.join() and os.makedirs() meaning
- OpenGL learning — problems encountered in compiling OpenGL program for the first time
- About the problem of calling tools library by running Python program under Mac OS X, modulenotfoundererror: no module named ‘tools‘
- To solve the problem of “failed to load vmmr0. R0” (Verr) of VirtualBox under Mac OS X_ SUPLIB_ WORLD_ Writable) “error
- How to save big data in Oracle to CLOB
- The solution of using OpenGL’s Glu Library in qt5.2 under win7
- A series of problems in configuring OpenGL development environment in vs2015
- MacBook M1 Big Sur logging into forticlient SSL VPN
- Configuring OpenGL development environment in win10 + vs2015 (including the method of installing 32-bit and 64 bit libraries)
- Homebrew reports an error after upgrading MacOS to Big Sur