X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=WCudaMSE%2FStudent_Cuda_Image%2Fsrc%2Fcpp%2Fcore%2FmainGL.cpp;fp=WCudaMSE%2FStudent_Cuda_Image%2Fsrc%2Fcpp%2Fcore%2FmainGL.cpp;h=44ee7517441366796ea42cebcaf25bf6aadc6a16;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/mainGL.cpp b/WCudaMSE/Student_Cuda_Image/src/cpp/core/mainGL.cpp new file mode 100755 index 0000000..44ee751 --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/mainGL.cpp @@ -0,0 +1,77 @@ +#include +#include +#include + +#include "GLUTImageViewers.h" + +#include "Device.h" +#include "cudaTools.h" + +#include "Rippling0Provider.h" +#include "RipplingProvider.h" + +using std::cout; +using std::endl; +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainGL(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainGL(void) + { + Rippling0Image* ptrRippling0 = Rippling0Provider::createGL(); + Image* ptrRippling = RipplingProvider::createGL(); + // TODO : Insert autres Images ... + + bool isAnimation = true; + bool isSelection = true; + + GLUTImageViewers rippling0Viewer(ptrRippling0, isAnimation, isSelection, 0, 0); + GLUTImageViewers ripplingViewer(ptrRippling, isAnimation, isSelection, 10, 10); + // TODO : Insert here autres ImageViewers ... + + GLUTImageViewers::runALL(); // Bloquant, Tant qu'une fenetre est ouverte + + // destruction + { + delete ptrRippling0; + delete ptrRippling; + + ptrRippling0 = NULL; + ptrRippling = NULL; + } + + return EXIT_SUCCESS; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ +