Skip to content

Commit 38dda59

Browse files
committed
Make a header wrapping glu for Mac.
1 parent 1c7b750 commit 38dda59

File tree

25 files changed

+59
-23
lines changed

25 files changed

+59
-23
lines changed

src/common/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ set(HEADERS
3131
filterparameter.h
3232
filterscript.h
3333
gl_defs.h
34+
glu_defs.h
3435
interfaces.h
3536
meshlabdocumentbundler.h
3637
meshlabdocumentxml.h

src/common/glu_defs.h

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/****************************************************************************
2+
* MeshLab o o *
3+
* An extendible mesh processor o o *
4+
* _ O _ *
5+
* Copyright(C) 2005, 2006 \/)\/ *
6+
* Visual Computing Lab /\/| *
7+
* ISTI - Italian National Research Council | *
8+
* \ *
9+
* All rights reserved. *
10+
* *
11+
* This program is free software; you can redistribute it and/or modify *
12+
* it under the terms of the GNU General Public License as published by *
13+
* the Free Software Foundation; either version 2 of the License, or *
14+
* (at your option) any later version. *
15+
* *
16+
* This program is distributed in the hope that it will be useful, *
17+
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
18+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
19+
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt) *
20+
* for more details. *
21+
* *
22+
****************************************************************************/
23+
24+
#ifndef GLU_DEFS_H
25+
#define GLU_DEFS_H
26+
27+
#include "gl_defs.h"
28+
29+
#ifdef __APPLE__
30+
#include <OpenGL/glu.h>
31+
#else
32+
#include <GL/glu.h>
33+
#endif
34+
35+
#endif // !GLU_DEFS_H

src/meshlab/glarea.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#include <common/interfaces.h>
2727
#include <common/gl_defs.h>
28-
#include <GL/glu.h>
28+
#include <common/glu_defs.h>
2929

3030
#include "glarea.h"
3131
#include "mainwindow.h"

src/meshlabplugins/decorate_base/decorate_base.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
****************************************************************************/
2323

2424
#include "decorate_base.h"
25-
#include <GL/glu.h>
25+
#include <common/glu_defs.h>
2626
#include <wrap/gl/addons.h>
2727
#include <vcg/complex/algorithms/stat.h>
2828
#include <vcg/complex/algorithms/bitquad_support.h>

src/meshlabplugins/decorate_shadow/decorate_shadow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
****************************************************************************/
2323

2424
#include "decorate_shadow.h"
25-
#include <GL/glu.h>
25+
#include <common/glu_defs.h>
2626

2727
using namespace vcg;
2828

src/meshlabplugins/decorate_shadow/shadow_mapping.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
****************************************************************************/
2323

2424
#include <meshlab/glarea.h>
25-
#include <GL/glu.h>
25+
#include <common/glu_defs.h>
2626
#include "decorate_shader.h"
2727
#include "shadow_mapping.h"
2828
#include <common/pluginmanager.h>

src/meshlabplugins/edit_align/AlignPairWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626

2727
#include <common/gl_defs.h>
28-
#include <GL/glu.h>
28+
#include <common/glu_defs.h>
2929
#include "edit_align.h"
3030
#include <QGLWidget>
3131
#include "AlignPairWidget.h"

src/meshlabplugins/edit_hole/holeSetManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#define HOLESETMANAGER_H
2626

2727
#include <common/gl_defs.h>
28-
#include <GL/glu.h>
28+
#include <common/glu_defs.h>
2929
#include "fgtHole.h"
3030
#include "fgtBridge.h"
3131
#include "vcg/complex/algorithms/hole.h"

src/meshlabplugins/edit_manipulators/edit_manipulators.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#include "edit_manipulators.h"
2525
#include <common/gl_defs.h>
26-
#include <GL/glu.h>
26+
#include <common/glu_defs.h>
2727
#include <meshlab/glarea.h>
2828
#include <wrap/qt/gl_label.h>
2929
#include <wrap/gui/trackball.h>

src/meshlabplugins/edit_measure/edit_measure.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
****************************************************************************/
2727

2828
#include <meshlab/glarea.h>
29-
#include <GL/glu.h>
29+
#include <common/glu_defs.h>
3030
#include "edit_measure.h"
3131
#include <wrap/qt/gl_label.h>
3232

0 commit comments

Comments
 (0)