This is template OpenGL cmake project for project for Computer Graphics course in GIST.
Due to the scope of the lecture, the OpenGL version is intentionally set to 3.1.
git clone https://github.com/interactive-renderer.git-
Create build folder in project root
-
Run cmake gui(Configure and Generate)
You need to re-run cmake whenever you add more source files (*.h, *.cpp)
- Set path for build and source folder
Set source code directory to project-root.
Set build directory to project-root/build.
- Configure
- Generate
- Build the project
- Go to build folder
- Open glSkeleton.sln file
- Make glSkeleton as startup project and build it
- Run cmake
You need to re-run cmake command whenever you add more source files (*.h, *.cpp)
cd <PROJECT_ROOT>
mkdir build
cd build
cmake ..- Build and compile
make -j4You should install CMake and Git on your system. Other libraries will be installed automatically.
- CMake, Install it your self
- Git, Install it your self
- glfw , Windowing library
- glad, OpenGL function loading library
- glm, Math library for OpenGL and GLSL shader
- tinyobjloader, Minimal Wavefront .obj file loading library
- python, Python(GLAD) use python to load opengl functions
- 1 / 2: Toggle Point Light (On / Off)
- 3 / 4: Toggle Directional Light (On / Off)
- Q / W: Adjust Field of View (Zoom In / Out)
- Mouse Scroll: Adjust Camera Radius (Dolly)
- Left Click + Drag: Trackball Rotation
- ESC: Exit Application
