[Red Book] OpenGL Demo Code environment setup
Article Directory
I believe that many students who have read the Red Book of OpenGL have had similar experiences. It is very troublesome to set up the Demo code environment, and there is no way to start. The blogger organized this blog post based on his own experience
Install the base library
glfw3 installation tutorial
https://blog.csdn.net/qq_31985307/article/details/114156496
gl3w installation tutorial
https://blog.csdn.net/qq_31985307/article/details/114186661
CMakeLists.txt sample
cmake_minimum_required(VERSION 3.15)
project(ReadBookDemoCode C)
set(CMAKE_C_STANDARD 99)
add_executable(ReadBookDemoCode
gl3w.h
glcorearb.h
gl3w.c
main.c
)
target_link_libraries(ReadBookDemoCode
glfw3
opengl32
)
After the environment is set up, you can happily compile Code!
Those who like it, remember to use one button for three consecutive games ! !