Skip to content

Commit

Permalink
Make a header wrapping glu for Mac.
Browse files Browse the repository at this point in the history
  • Loading branch information
rpavlik committed Apr 15, 2020
1 parent 1c7b750 commit 38dda59
Show file tree
Hide file tree
Showing 25 changed files with 59 additions and 23 deletions.
1 change: 1 addition & 0 deletions src/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ set(HEADERS
filterparameter.h
filterscript.h
gl_defs.h
glu_defs.h
interfaces.h
meshlabdocumentbundler.h
meshlabdocumentxml.h
Expand Down
35 changes: 35 additions & 0 deletions src/common/glu_defs.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/****************************************************************************
* MeshLab o o *
* An extendible mesh processor o o *
* _ O _ *
* Copyright(C) 2005, 2006 \/)\/ *
* Visual Computing Lab /\/| *
* ISTI - Italian National Research Council | *
* \ *
* All rights reserved. *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt) *
* for more details. *
* *
****************************************************************************/

#ifndef GLU_DEFS_H
#define GLU_DEFS_H

#include "gl_defs.h"

#ifdef __APPLE__
#include <OpenGL/glu.h>
#else
#include <GL/glu.h>
#endif

#endif // !GLU_DEFS_H
2 changes: 1 addition & 1 deletion src/meshlab/glarea.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include <common/interfaces.h>
#include <common/gl_defs.h>
#include <GL/glu.h>
#include <common/glu_defs.h>

#include "glarea.h"
#include "mainwindow.h"
Expand Down
2 changes: 1 addition & 1 deletion src/meshlabplugins/decorate_base/decorate_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
****************************************************************************/

#include "decorate_base.h"
#include <GL/glu.h>
#include <common/glu_defs.h>
#include <wrap/gl/addons.h>
#include <vcg/complex/algorithms/stat.h>
#include <vcg/complex/algorithms/bitquad_support.h>
Expand Down
2 changes: 1 addition & 1 deletion src/meshlabplugins/decorate_shadow/decorate_shadow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
****************************************************************************/

#include "decorate_shadow.h"
#include <GL/glu.h>
#include <common/glu_defs.h>

using namespace vcg;

Expand Down
2 changes: 1 addition & 1 deletion src/meshlabplugins/decorate_shadow/shadow_mapping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
****************************************************************************/

#include <meshlab/glarea.h>
#include <GL/glu.h>
#include <common/glu_defs.h>
#include "decorate_shader.h"
#include "shadow_mapping.h"
#include <common/pluginmanager.h>
Expand Down
2 changes: 1 addition & 1 deletion src/meshlabplugins/edit_align/AlignPairWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@


#include <common/gl_defs.h>
#include <GL/glu.h>
#include <common/glu_defs.h>
#include "edit_align.h"
#include <QGLWidget>
#include "AlignPairWidget.h"
Expand Down
2 changes: 1 addition & 1 deletion src/meshlabplugins/edit_hole/holeSetManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#define HOLESETMANAGER_H

#include <common/gl_defs.h>
#include <GL/glu.h>
#include <common/glu_defs.h>
#include "fgtHole.h"
#include "fgtBridge.h"
#include "vcg/complex/algorithms/hole.h"
Expand Down
2 changes: 1 addition & 1 deletion src/meshlabplugins/edit_manipulators/edit_manipulators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include "edit_manipulators.h"
#include <common/gl_defs.h>
#include <GL/glu.h>
#include <common/glu_defs.h>
#include <meshlab/glarea.h>
#include <wrap/qt/gl_label.h>
#include <wrap/gui/trackball.h>
Expand Down
2 changes: 1 addition & 1 deletion src/meshlabplugins/edit_measure/edit_measure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
****************************************************************************/

#include <meshlab/glarea.h>
#include <GL/glu.h>
#include <common/glu_defs.h>
#include "edit_measure.h"
#include <wrap/qt/gl_label.h>

Expand Down
2 changes: 1 addition & 1 deletion src/meshlabplugins/edit_mutualcorrs/edit_mutualcorrs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <math.h>
#include <stdlib.h>
#include <common/gl_defs.h>
#include <GL/glu.h>
#include <common/glu_defs.h>
#include <meshlab/glarea.h>
#include <wrap/gl/pick.h>
#include <wrap/qt/gl_label.h>
Expand Down
2 changes: 1 addition & 1 deletion src/meshlabplugins/edit_paint/edit_paint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
****************************************************************************/
#include "edit_paint.h"
#include <common/gl_defs.h>
#include <GL/glu.h>
#include <common/glu_defs.h>

#include <vcg/math/perlin_noise.h>

Expand Down
2 changes: 1 addition & 1 deletion src/meshlabplugins/edit_paint/edit_paint.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#define EDITPAINT_H

#include <common/gl_defs.h>
#include <GL/glu.h>
#include <common/glu_defs.h>
#include <QObject>
#include <QDockWidget>

Expand Down
2 changes: 1 addition & 1 deletion src/meshlabplugins/edit_pickpoints/editpickpoints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*/

#include <common/gl_defs.h>
#include <GL/glu.h>
#include <common/glu_defs.h>

#include "editpickpoints.h"
#include <meshlab/mainwindow.h>
Expand Down
2 changes: 1 addition & 1 deletion src/meshlabplugins/edit_point/edit_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <math.h>
#include <stdlib.h>
#include <common/gl_defs.h>
#include <GL/glu.h>
#include <common/glu_defs.h>
#include <meshlab/glarea.h>
#include "edit_point.h"
#include <wrap/gl/pick.h>
Expand Down
2 changes: 1 addition & 1 deletion src/meshlabplugins/edit_referencing/edit_referencing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <math.h>
#include <stdlib.h>
#include <common/gl_defs.h>
#include <GL/glu.h>
#include <common/glu_defs.h>
#include <meshlab/glarea.h>
#include <wrap/gl/pick.h>
#include <wrap/qt/gl_label.h>
Expand Down
2 changes: 1 addition & 1 deletion src/meshlabplugins/edit_texture/renderarea.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
****************************************************************************/

#include <common/gl_defs.h>
#include <GL/glu.h>
#include <common/glu_defs.h>
#include "renderarea.h"
#include "textureeditor.h"
#include <wrap/qt/trackball.h>
Expand Down
2 changes: 1 addition & 1 deletion src/meshlabplugins/filter_ao/filter_ao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
****************************************************************************/

#include <common/gl_defs.h>
#include <GL/glu.h>
#include <common/glu_defs.h>
#include "filter_ao.h"
#include <QGLFramebufferObject>
#include <vcg/math/gen_normal.h>
Expand Down
2 changes: 1 addition & 1 deletion src/meshlabplugins/filter_sdfgpu/filter_sdfgpu.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "filter_sdfgpu.h"
#include <common/gl_defs.h>
#include <GL/glu.h>
#include <common/glu_defs.h>

#include <vcg/complex/complex.h>
#include <vcg/complex/algorithms/intersection.h>
Expand Down
2 changes: 1 addition & 1 deletion src/meshlabplugins/filter_sdfgpu/filter_sdfgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <QObject>

#include <common/interfaces.h>
#include <GL/glu.h>
#include <common/glu_defs.h>
#include <gpuProgram.h>
#include <framebufferObject.h>
#include <texture2D.h>
Expand Down
2 changes: 1 addition & 1 deletion src/meshlabplugins/render_radiance_scaling/gpuProgram.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#define GPUPROGRAM_H

#include <common/gl_defs.h>
#include <GL/glu.h>
#include <common/glu_defs.h>
#include <iostream>
#include "gpuShader.h"
#include <string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "radianceScalingRenderer.h"

#include <common/gl_defs.h>
#include <GL/glu.h>
#include <common/glu_defs.h>

#include <math.h>
#include <stdlib.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#define RADIANCESCALINGRENDERER_H

#include <common/gl_defs.h>
#include <GL/glu.h>
#include <common/glu_defs.h>
#include <common/interfaces.h>

#include <QAction>
Expand Down
2 changes: 1 addition & 1 deletion src/sampleplugins/sample_filtergpu/sample_filtergpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include "sample_filtergpu.h"
#include <common/gl_defs.h>
#include <GL/glu.h>
#include <common/glu_defs.h>
#include <wrap/glw/glw.h>
#include <QImage>

Expand Down
2 changes: 1 addition & 1 deletion src/sampleplugins/sampleedit/sampleedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <math.h>
#include <stdlib.h>
#include <common/gl_defs.h>
#include <GL/glu.h>
#include <common/glu_defs.h>
#include <meshlab/glarea.h>
#include "sampleedit.h"
#include <wrap/gl/pick.h>
Expand Down

0 comments on commit 38dda59

Please sign in to comment.