21 #ifndef Tulip_GLFEEDBACKBUILDER_H
22 #define Tulip_GLFEEDBACKBUILDER_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>
42 typedef struct _FeedBack3Dcolor {
53 typedef struct _DepthIndex {
62 class TLP_GL_SCOPE GlFeedBackBuilder {
66 virtual ~GlFeedBackBuilder() {}
68 virtual void begin(
const Vector<int, 4> &) {}
69 virtual void passThroughToken(GLfloat*) {}
70 virtual void pointToken(GLfloat*) {}
71 virtual void lineToken(GLfloat*) {}
72 virtual void lineResetToken(GLfloat*) {}
73 virtual void polygonToken(GLfloat*) {}
74 virtual void bitmapToken(GLfloat*) {}
75 virtual void drawPixelToken(GLfloat*) {}
76 virtual void copyPixelToken(GLfloat*) {}
79 virtual void getResult(std::string* str) = 0;
85 #endif // Tulip_GLFEEDBACKBUILDER_H