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=1f9536dce1d4aa2f12beb60aac0dba9a50ddb132;hb=f8259dce248a4411c3bc64cecb9fc268c4fd81d6;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..1f9536d 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,6 +4,8 @@ #include "cudaTools.h" #include "Animable_I.h" #include "MathTools.h" +#include "AleaTools.h" + #include "Sphere.h" class RayTracing : public Animable_I @@ -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