- glad: build from CMakeLists.txt in
${project_folder}/glad
- glfw3
- stb library: for Fedora Linux `sudo dnf install stb*", other platforms go check out stb library
- glm(OpenGL Mathematics): for Fedora Linux `sudo dnf install glm-devel" , other platforms go check out glm library
- CMake
build the program
chmod +x build.sh clean.sh
./build.sh
execute the program in current folder(OpenGL)
./build/bin/1_create_window
- Camera interactive logics(starts at section 4)
Key | Effect |
---|---|
WSAD | Move forward, backward, leftward, rightward |
Space | Move upward |
Ctrl | Move downward |
Press mouse left key + drag mouse | Focus on camera and change the angle of view |