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:
- Configuring OpenGL development environment in win10 + vs2015 (including the method of installing 32-bit and 64 bit libraries)
- The solution of using OpenGL’s Glu Library in qt5.2 under win7
- OpenGL class library and environment configuration under win10 and vs2015
- OpenGL environment configuration under VS2010 / vs2012 / vs2015
- On the configuration of OpenGL Red Book eighth edition environment in vs2013
- (64 bit) OpenGL configuration + vs2017 + glew + glfw
- Breaking Baidu’s secret of making money by reading
- The simplest way to configure OpenGL development environment with vs2015
- 1 vs20152017 + OpenGL to configure and draw a white rectangle
- OpenGL Programming Guide 8th Edition 9th Edition vs2015 vs2017 configuration method
- The reason of OpenGL configuration error in VS
- Using glut in CodeBlocks
- Building OpenGL environment
- Configure OpenGL development environment (vs2015)
- Qt5_ Various paths
- OpenGL application cannot start normally
- Vs2015 configuring OpenGL (glfw, glew)
- CodeBlocks OpenGL configuration process
- Vs under the execution of OpenGL program can run successfully, but do not show things
- The solution of configuring OpenGL in vs2017