1 #include "RayTracingProvider.h"
3 RayTracing
* RayTracingProvider::create(int dw
, int dh
, int dg
, int db
)
5 return new RayTracing(dw
, dh
, dg
, db
);
8 Image
* RayTracingProvider::createGL()
11 const int dw
= 16 * 50;
12 const int dh
= 16 * 50;
13 const int dg
= 32; // 32x32.
14 const int db
= 8; // 8x8.
16 ColorRGB_01
* ptrColorTitre
= new ColorRGB_01(255, 255, 255);
17 return new Image(create(dw
, dh
, dg
, db
), ptrColorTitre
); // both ptr destroy by destructor of ImageFonctionel