/interactive_computer_graphics

Interactive Computer Graphics by Edward Angel Linux Versions

Primary LanguageC++OtherNOASSERTION

Interactive Computer Graphics (Linux Versions)

by Edward Angel

The code in this repo is the Linux version of the code. I have moved the build system from Make to CMake for various Linux distro compatibility, and have so far tested on Ubuntu/Pop_OS and RedHat/CentOS.

Building the Project

From the project root directory do:

$ cmake -S . -B build
$ cmake --build build -j$(nproc)

You also have a lot of control over what you want to build when. If you look at the CMakeLists.txt file in the project root you will see the following lines of code:

option(BUILD_CHAP_02 "Build Chap 02 subproject." ON)
option(BUILD_CHAP_03 "Build Chap 03 subproject." ON)
option(BUILD_CHAP_04 "Build Chap 04 subproject." ON)
option(BUILD_CHAP_05 "Build Chap 05 subproject." ON)
option(BUILD_CHAP_07 "Build Chap 07 subproject." ON)
option(BUILD_CHAP_08 "Build Chap 08 subproject." ON)
option(BUILD_CHAP_09 "Build Chap 09 subproject." ON)
option(BUILD_CHAP_10 "Build Chap 10 subproject." ON)
option(BUILD_APPEN_A "Build Appendix A subproject." ON)

where you have the option to cherrypick which projects you would like built.

Where are the executables?

The executables are grouped by chapter then example, so if you want chap04 example1 you follow the path:

build/chap_04/LINUX_VERSIONS/example1/

where you will find the executable:

chap_04_ex1

Any problems feel free to fork, fix then issue a pull request.

Here is the link to the Mac and Windows original versions on Edward Angel's site.

Dean Butcher (2022)