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=80729b86160520adb5d4869ddf77a1af4a7f351a;hpb=ebdad7dc732d4742d09fd72d312175cb07d27a59;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 80729b8..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 @@ -4,12 +4,14 @@ #include "cudaTools.h" #include "Animable_I.h" #include "MathTools.h" +#include "AleaTools.h" + #include "Sphere.h" 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*/; @@ -20,11 +22,18 @@ class RayTracing : public Animable_I float getT() /*override*/; - string getTitle(void) /*override*/; + 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; const int w; @@ -33,7 +42,7 @@ class RayTracing : public Animable_I const dim3 dg; const dim3 db; - const string title; + const std::string title; }; #endif