OSDN Git Service

first
[psychlops/cpp.git] / osx / test / Shader / ShaderFirm.cpp
1 #include <psychlops.h>
2 using namespace Psychlops;
3
4 void psychlops_main() {
5         Canvas cnvs(1024,768,Canvas::window);
6         cnvs.watchFPS();
7         cnvs.showFPS();
8         Mouse::show();
9         Color::setGammaValue(1.0,1.0,1.0);
10
11
12         Figures::ShaderExponentialDot shaderDot;
13         shaderDot.setSigma(6).centering();
14
15         Image imageDot;
16         shaderDot.to(imageDot);
17         imageDot.centering().shift(0,100);
18
19
20         while(!Keyboard::esc.pushed()) {
21                 cnvs.clear(Color::gray);
22                 shaderDot.shift(0.1,0).draw();
23                 imageDot .shift(0.1,0).draw();
24                 cnvs.flip();
25         }
26 }
27