9510e622504cc6fab5d1cd79c138c0744184e91e
1 #include "DamierProvider.h"
4 /*----------------------------------------------------------------------*\
6 \*---------------------------------------------------------------------*/
8 /*--------------------------------------*\
10 \*-------------------------------------*/
12 /*--------------------------------------*\
14 \*-------------------------------------*/
16 /*--------------------------------------*\
18 \*-------------------------------------*/
20 /*----------------------------------------------------------------------*\
22 \*---------------------------------------------------------------------*/
24 /*--------------------------------------*\
26 \*-------------------------------------*/
32 Damier
* DamierProvider::create()
34 int dw
= 16 * 60; // =32*30=960
35 int dh
= 16 * 60; // =32*30=960
37 float dt
= 2 * PI
/ 8000;
40 return new Damier(dw
, dh
, dt
, n
);
43 ImageFonctionel
* DamierProvider::createGL(void)
45 ColorRGB_01
* ptrColorTitre
=new ColorRGB_01(0,0,0);
47 return new ImageFonctionel(create(),ptrColorTitre
); // both ptr destroy by destructor of ImageFonctionel
50 /*--------------------------------------*\
52 \*-------------------------------------*/
54 /*----------------------------------------------------------------------*\
56 \*---------------------------------------------------------------------*/