X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FAPI_Bilat_Graph2D%2FINC%2Fview%2FGLCurveParametric.h;fp=WCudaMSE%2FAPI_Bilat_Graph2D%2FINC%2Fview%2FGLCurveParametric.h;h=10d854aeeb6f5db6814ce896a90f94cc4a33626d;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/view/GLCurveParametric.h b/WCudaMSE/API_Bilat_Graph2D/INC/view/GLCurveParametric.h new file mode 100755 index 0000000..10d854a --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/view/GLCurveParametric.h @@ -0,0 +1,40 @@ +#ifndef GLPOLYLINES_H_ +#define GLPOLYLINES_H_ + +#include "GLFigure.h" +#include "CurveParametric.h" +#include "VertexBufferObject.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH GLCurveParametric: public GLFigure + { + public: + GLCurveParametric(CurveParametric* ptrPolyline); + virtual ~GLCurveParametric(); + + CurveParametric* getPolyline() const; + + void init(Panel_A &panel); + void reshape(Panel_A &panel, const Viewport &viewport); + void display(Panel_A &panel); + void release(Panel_A &panel); + protected: + void updateGL(Panel_A &panel,const Domaine &domaineGraph); + private: + + // OpenGL + VertexBufferObject* vboVertex; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/