mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-06 04:53:30 +08:00
compile FREEGLUT as a subdirectory. this maintains a consistency
This commit is contained in:
@@ -13,6 +13,13 @@
|
||||
* src="https://upload.wikimedia.org/wikipedia/commons/3/39/Resonance_Cascade.svg"
|
||||
* alt="Spirograph geometry from Wikipedia" style="width: 250px"/></a>
|
||||
*/
|
||||
#ifdef USE_GLUT
|
||||
#ifdef __APPLE__
|
||||
#include <GLUT/glut.h> // include path on Macs is different
|
||||
#else
|
||||
#include <GL/glut.h>
|
||||
#endif // __APPLE__
|
||||
#endif
|
||||
#define _USE_MATH_DEFINES /**< required for MSVC compiler */
|
||||
#include <array>
|
||||
#include <cmath>
|
||||
@@ -25,13 +32,6 @@
|
||||
#ifdef _OPENMP
|
||||
#include <omp.h>
|
||||
#endif
|
||||
#ifdef USE_GLUT
|
||||
#ifdef __APPLE__
|
||||
#include <GLUT/glut.h> // include path on Macs is different
|
||||
#else
|
||||
#include <GL/glut.h>
|
||||
#endif // __APPLE__
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @namespace spirograph Functions related to spirograph.cpp
|
||||
|
||||
Reference in New Issue
Block a user