Commit 033476cd authored by Mathieu Malaterre's avatar Mathieu Malaterre
Browse files

* Fix for MacOSX compilation

parent aa0e9495
......@@ -28,15 +28,14 @@
# define VTK_STDCALL
#endif //_WIN32
vtkCxxRevisionMacro(vtkGLUTesselatorTriangleFilter, "1.7");
vtkCxxRevisionMacro(vtkGLUTesselatorTriangleFilter, "1.8");
vtkStandardNewMacro(vtkGLUTesselatorTriangleFilter);
// GLU support methods
static void VTK_STDCALL GluError(GLenum err)
{
// what the heck is this ?????
const GLubyte* pByte = gluErrorString(err);
(void)pByte;
vtkGenericWarningMacro( << pByte );
}
static void VTK_STDCALL GlBegin(GLenum mode, void * polygon_data);
static void VTK_STDCALL GlEnd(void * polygon_data);
......
......@@ -29,7 +29,11 @@
#define __vtkGLUTesselatorTriangleFilter_h
#include "vtkPolyDataToPolyDataFilter.h"
#include <GL/glu.h> // Needed for GLUtesselator
#if defined(__APPLE__) && (defined(VTK_USE_CARBON) || defined(VTK_USE_COCOA))
# include <OpenGL/glu.h> // Needed for GLUtesselator
#else
# include <GL/glu.h> // Needed for GLUtesselator
#endif
class VTK_HYBRID_EXPORT vtkGLUTesselatorTriangleFilter : public vtkPolyDataToPolyDataFilter
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment