#include <map>
+#ifdef __APPLE__
+#include <OpenGL/gl.h>
+#else
#include <GL/gl.h>
+#endif
#include <vtkSmartPointer.h>
#define MAPPER_SUPERCLASS vtkMesaPolyDataMapper
#endif
-#ifndef GL_ARB_shader_objects
-typedef GLuint GLhandleARB;
-#endif
-
+#include "VTKViewer_OpenGLHelper.h"
//----------------------------------------------------------------------------
//! OpenGL Point Sprites PolyData Mapper.
vtkSmartPointer<vtkImageData> ImageData;
+ VTKViewer_OpenGLHelper OpenGLHelper;
GLhandleARB PointProgram;
#ifdef VTK_OPENGL2
GLhandleARB VertexShader;
static const GLint INVALID_LOCATION = -1;
GLint ModelViewProjection;
+ GLint Projection;
GLint GeneralPointSize;
GLint PointSprite;
Locations()
: ModelViewProjection (INVALID_LOCATION),
+ Projection (INVALID_LOCATION),
GeneralPointSize (INVALID_LOCATION),
PointSprite (INVALID_LOCATION)
{