openglsuperbible / sb7code

Source code and supporting material for the 7th Edition of OpenGL SuperBible
727 stars 251 forks source link

MinGW and MacOS Fixes #25

Open jhannemann opened 7 years ago

jhannemann commented 7 years ago

The demos now compile with CodeBlocks/MinGW using the regular CMake process.

For now, I've omitted OpenMP-dependent executables, but that can easily be fixed using CMake's FindOpenMP module.

Had to make some minor tweaks because Sleep() would result in unresolved symbols.

Also added compile instructions to set MinGW to C++11 and how to properly enable the M_PI macro.

I've added GLFW3 3.2.1 as an external dependency as that seems to fix a lot of problems on MacOS.

I've also added appropriate gitattributes and gitignore files to ensure proper line ending conversions.