X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FBilatTools_Cuda_Image%2Fsrc%2Fcore%2FcudaImageTools%2Fbitmap%2Fheader%2FAnimateurFreeGL.h;fp=WCudaMSE%2FBilatTools_Cuda_Image%2Fsrc%2Fcore%2FcudaImageTools%2Fbitmap%2Fheader%2FAnimateurFreeGL.h;h=f978d3cf13270bb7805678603130c38d40508c41;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/bitmap/header/AnimateurFreeGL.h b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/bitmap/header/AnimateurFreeGL.h new file mode 100755 index 0000000..f978d3c --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/bitmap/header/AnimateurFreeGL.h @@ -0,0 +1,73 @@ +#ifndef ANIMATEUR_FREE_GL_H_ +#define ANIMATEUR_FREE_GL_H_ + +#include "Animable_I.h" + +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class AnimateurFreeGL + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + /** + * Hyp: + * (H1) nbIteration suffisamment grand pour que timeElapse soit significatif + * (H2) ptrAnimable image uchar4 + */ + AnimateurFreeGL(Animable_I* ptrAnimable,int nbIteration=1000); + virtual ~AnimateurFreeGL(void); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public : + + int getFps(void); + + private: + + /** + * Synchrone, ,return fps + */ + int start(void); + void printStat(void); + + private: + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Inputs + int nbIteration; + Animable_I* ptrAnimable; + + // Tools + + // Output + int fps; + float timeElapseS; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ +