3a0637f3617f29c6b9794d27e9b8324b55c1662e
[GPU.git] / WCudaMSE / Student_Cuda_Image / src / cpp / core / 03_Newton / provider / NewtonProvider.cpp
1 #include "NewtonProvider.h"
2
3 Newton* NewtonProvider::create()
4 {
5 int dw = 16 * 50;
6 int dh = 16 * 30;
7
8 return new Newton(dw, dh);
9 }
10
11 ImageFonctionel* NewtonProvider::createGL()
12 {
13 ColorRGB_01* ptrColorTitre = new ColorRGB_01(0, 0, 0);
14 return new ImageFonctionel(create(), ptrColorTitre); // both ptr destroy by destructor of ImageFonctionel
15 }