Project

General

Profile

« Previous | Next » 

Revision 9a645457

Added by Leszek Koltunski over 1 year ago

simplify the crash app.

View differences:

src/main/java/org/distorted/examples/flatblur2/FlatBlur2Renderer.java
60 60
      {
61 61
      mView = v;
62 62
      mScreen = new DistortedScreen();
63

  
64
      DistortedTexture texture1 = new DistortedTexture();
65
      texture1.setColorARGB(0xffff0000);
66
      MeshQuad mesh1 = new MeshQuad();
67
      DistortedEffects effects1 = new DistortedEffects();
68
      VertexEffectScale mainScale= new VertexEffectScale(200);
69
      effects1.apply(mainScale);
70
      mNode1 = new DistortedNode(texture1,effects1,mesh1);
71
      mScreen.attach(mNode1);
72

  
73
      DistortedTexture texture2 = new DistortedTexture();
74
      texture2.setColorARGB(0xffff0000);
75
      MeshQuad mesh2 = new MeshQuad();
76
      DistortedEffects effects2 = new DistortedEffects();
77
      mNode2 = new DistortedNode(texture2,effects2,mesh2);
78
      mScreen.attach(mNode2);
63 79
      }
64 80

  
65 81
///////////////////////////////////////////////////////////////////////////////////////////////////
......
94 110

  
95 111
///////////////////////////////////////////////////////////////////////////////////////////////////
96 112

  
97
    public void button1()
98
      {
99
      DistortedTexture texture1 = new DistortedTexture();
100
      texture1.setColorARGB(0xffff0000);
101
      MeshQuad mesh1 = new MeshQuad();
102
      DistortedEffects effects1 = new DistortedEffects();
103
      VertexEffectScale mainScale= new VertexEffectScale(200);
104
      effects1.apply(mainScale);
105
      mNode1 = new DistortedNode(texture1,effects1,mesh1);
106
      mScreen.attach(mNode1);
107

  
108
      DistortedTexture texture2 = new DistortedTexture();
109
      texture2.setColorARGB(0xffff0000);
110
      MeshQuad mesh2 = new MeshQuad();
111
      DistortedEffects effects2 = new DistortedEffects();
112
      mNode2 = new DistortedNode(texture2,effects2,mesh2);
113
      mScreen.attach(mNode2);
114
      }
115

  
116
///////////////////////////////////////////////////////////////////////////////////////////////////
117

  
118
    public void button2()
113
    public void crash()
119 114
      {
120 115
      Dynamic2D haloRadius = new Dynamic2D(DUR_GLO,1.0f);
121 116
      haloRadius.add(new Static2D( 0, 0));

Also available in: Unified diff