Implémentation du raytracing pour Global Memory/Shared Memory/Constant Memory
[GPU.git] / WCudaMSE / Student_Cuda_Image / src / cpp / core / 04_RayTracing / provider / RayTracingProvider.cpp
1 #include "RayTracingProvider.h"
2
3 RayTracing* RayTracingProvider::create()
4 {
5 int dw = 16 * 50;
6 int dh = 16 * 50;
7
8 return new RayTracing(dw, dh);
9 }
10
11 Image* RayTracingProvider::createGL()
12 {
13 ColorRGB_01* ptrColorTitre = new ColorRGB_01(255, 255, 255);
14 return new Image(create(), ptrColorTitre); // both ptr destroy by destructor of ImageFonctionel
15 }