21 #ifndef Tulip_GLFEEDBACKRECORDER_H
22 #define Tulip_GLFEEDBACKRECORDER_H
24 #include <tulip/tulipconf.h>
27 #include <tulip/Vector.h>
29 #include <tulip/GlFeedBackBuilder.h>
38 class TLP_GL_SCOPE GlFeedBackRecorder {
45 GlFeedBackRecorder(GlFeedBackBuilder *builder,
unsigned int pointSize=7):
46 feedBackBuilder(builder),
47 pointSize(pointSize) {}
55 void record(
bool doSort, GLint size, GLfloat *feedBackBuffer,
const Vector<int,4>& viewport);
59 void sortAndRecord(GLint size, GLfloat *feedBackBuffer);
60 void record(GLint size, GLfloat *feedBackBuffer);
61 GLfloat* recordPrimitive(GLfloat *loc);
63 GlFeedBackBuilder *feedBackBuilder;
64 unsigned int pointSize;
70 #endif // Tulip_GLFEEDBACKRECORDER_H