X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;ds=inline;f=WCudaMSE%2FAPI_Bilat_Image_GL_Cuda%2FINC%2Fgpu%2FDomaineEcran_GPU.h;fp=WCudaMSE%2FAPI_Bilat_Image_GL_Cuda%2FINC%2Fgpu%2FDomaineEcran_GPU.h;h=388bcd88b9a88fcc2975f31569726b7a442bcd9d;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/DomaineEcran_GPU.h b/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/DomaineEcran_GPU.h new file mode 100755 index 0000000..388bcd8 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/DomaineEcran_GPU.h @@ -0,0 +1,64 @@ +#ifndef DOMAINE_ECRAN_GPU_H +#define DOMAINE_ECRAN_GPU_H + +#include "envGLImageCudas.h" +#include +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace gpu + { + class CBI_GLIMAGE_CUDA DomaineEcran + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + __host__ __device__ DomaineEcran(int x, int y, int dx, int dy) : + x0(x), y0(y), dx(dx), dy(dy) + { + + } + + __host__ __device__ DomaineEcran() : x0(0),y0(0),dx(1),dy(1) + { + + } + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + __host__ string toString(); + + /*-------------------------------------*\ + |* Attributs *| + \*------------------------------------*/ + + public: + + //Input + int x0; + int y0; + int dx; + int dy; + }; + } +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ +