21 #ifndef Tulip_GLFEEDBACKRECORDER_H
22 #define Tulip_GLFEEDBACKRECORDER_H
28 #if defined(__APPLE__)
29 #include <OpenGL/gl.h>
30 #include <OpenGL/glu.h>
36 #include <tulip/tulipconf.h>
37 #include <tulip/Vector.h>
41 class GlFeedBackBuilder;
48 class TLP_GL_SCOPE GlFeedBackRecorder {
55 GlFeedBackRecorder(GlFeedBackBuilder *builder,
unsigned int pointSize=7);
63 void record(
bool doSort, GLint size, GLfloat *feedBackBuffer,
const Vector<int,4>& viewport);
67 void sortAndRecord(GLint size, GLfloat *feedBackBuffer);
68 void record(GLint size, GLfloat *feedBackBuffer);
69 GLfloat* recordPrimitive(GLfloat *loc);
71 GlFeedBackBuilder *feedBackBuilder;
72 unsigned int pointSize;
78 #endif // Tulip_GLFEEDBACKRECORDER_H