Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / Tuto_Image / src / cpp / core / 02_Damier_Zoomable / d_provider / DamierProvider.cpp
1 #include "DamierProvider.h"
2 #include "MathTools.h"
3 /*----------------------------------------------------------------------*\
4 |* Declaration *|
5 \*---------------------------------------------------------------------*/
6
7 /*--------------------------------------*\
8 |* Imported *|
9 \*-------------------------------------*/
10
11 /*--------------------------------------*\
12 |* Public *|
13 \*-------------------------------------*/
14
15 /*--------------------------------------*\
16 |* Private *|
17 \*-------------------------------------*/
18
19 /*----------------------------------------------------------------------*\
20 |* Implementation *|
21 \*---------------------------------------------------------------------*/
22
23 /*--------------------------------------*\
24 |* Public *|
25 \*-------------------------------------*/
26
27 /*-----------------*\
28 |* static *|
29 \*----------------*/
30
31 DamierImage* DamierProvider::create(void)
32 {
33 int dw = 16 * 60; // =32*30=960
34 int dh = 16 * 60; // =32*30=960
35
36 int n = 2;
37
38 // animation para
39 float dt = 2 * PI / 400;
40
41 return new DamierImage(dw, dh, dt, n);
42 }
43
44 /*--------------------------------------*\
45 |* Private *|
46 \*-------------------------------------*/
47
48 /*----------------------------------------------------------------------*\
49 |* End *|
50 \*---------------------------------------------------------------------*/