21 #ifndef Tulip_GLFEEDBACKBUILDER_H 22 #define Tulip_GLFEEDBACKBUILDER_H 28 #if defined(__APPLE__) 29 #include <OpenGL/gl.h> 34 #include <tulip/tulipconf.h> 35 #include <tulip/Vector.h> 40 typedef struct _FeedBack3Dcolor {
51 typedef struct _DepthIndex {
60 class TLP_GL_SCOPE GlFeedBackBuilder {
64 virtual ~GlFeedBackBuilder() {}
66 virtual void begin(
const Vector<int, 4> &, GLfloat *, GLfloat , GLfloat) {}
67 virtual void passThroughToken(GLfloat*) {}
68 virtual void pointToken(GLfloat*) {}
69 virtual void lineToken(GLfloat*) {}
70 virtual void lineResetToken(GLfloat*) {}
71 virtual void polygonToken(GLfloat*) {}
72 virtual void bitmapToken(GLfloat*) {}
73 virtual void drawPixelToken(GLfloat*) {}
74 virtual void copyPixelToken(GLfloat*) {}
77 virtual void getResult(std::string* str) = 0;
83 #endif // Tulip_GLFEEDBACKBUILDER_H