X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=WCudaMSE%2FStudent_Cuda_Image%2Fsrc%2Fcpp%2Fcore%2F04_RayTracing%2Fmoo%2Fhost%2FRayTracing.h;h=128d7e0379546629e836a3d0edf14e0631809fc4;hb=1c4b2276e7157acde9a3014b68d5d1667a7d6a44;hp=313fa6b161ad1daf1c3b4078dddeb6f6cca9760c;hpb=2fd5d915e8a9de4d957d6031d2d68088784eac3c;p=GPU.git diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/04_RayTracing/moo/host/RayTracing.h b/WCudaMSE/Student_Cuda_Image/src/cpp/core/04_RayTracing/moo/host/RayTracing.h index 313fa6b..128d7e0 100644 --- a/WCudaMSE/Student_Cuda_Image/src/cpp/core/04_RayTracing/moo/host/RayTracing.h +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/04_RayTracing/moo/host/RayTracing.h @@ -11,7 +11,7 @@ class RayTracing : public Animable_I { public: - RayTracing(int w, int h); + RayTracing(int w, int h, int dg, int db); ~RayTracing(); void runGPU(uchar4* ptrDevPixels) /*override*/; @@ -25,8 +25,13 @@ class RayTracing : public Animable_I std::string getTitle(void) /*override*/; private: + /** + * Crée un tablean de 'n' sphères dont le rayon, la couleur et la position sont générés aléatoirement. + */ Sphere* createSpheres(int n); + Sphere* ptrDevSpheres; // Pointeur sur la mémoire du GPU. + AleaTools alea; float t;