Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_Image_GL_Cuda / INC / gpu / DomaineEcran_GPU.h
1 #ifndef DOMAINE_ECRAN_GPU_H
2 #define DOMAINE_ECRAN_GPU_H
3
4 #include "envGLImageCudas.h"
5 #include <string>
6 using std::string;
7
8 /*----------------------------------------------------------------------*\
9 |* Declaration *|
10 \*---------------------------------------------------------------------*/
11
12 /*--------------------------------------*\
13 |* Public *|
14 \*-------------------------------------*/
15
16 namespace gpu
17 {
18 class CBI_GLIMAGE_CUDA DomaineEcran
19 {
20
21 /*--------------------------------------*\
22 |* Constructor *|
23 \*-------------------------------------*/
24
25 public:
26
27 __host__ __device__ DomaineEcran(int x, int y, int dx, int dy) :
28 x0(x), y0(y), dx(dx), dy(dy)
29 {
30
31 }
32
33 __host__ __device__ DomaineEcran() : x0(0),y0(0),dx(1),dy(1)
34 {
35
36 }
37
38 /*--------------------------------------*\
39 |* Methodes *|
40 \*-------------------------------------*/
41
42 public:
43
44 __host__ string toString();
45
46 /*-------------------------------------*\
47 |* Attributs *|
48 \*------------------------------------*/
49
50 public:
51
52 //Input
53 int x0;
54 int y0;
55 int dx;
56 int dy;
57 };
58 }
59 #endif
60
61 /*----------------------------------------------------------------------*\
62 |* End *|
63 \*---------------------------------------------------------------------*/
64