Project

General

Profile

« Previous | Next » 

Revision 76f9798b

Added by Leszek Koltunski over 7 years ago

New DistortedProgram class.

View differences:

src/main/java/org/distorted/examples/aroundtheworld/AroundTheWorldRenderer.java
55 55

  
56 56
   AroundTheWorldRenderer(GLSurfaceView view)
57 57
      {
58
      Distorted.setMaxVertex(12);
59
      Distorted.setMaxFragment(9);
58
      DistortedEffects.setMaxVertex(12);
59
      DistortedEffects.setMaxFragment(9);
60 60

  
61 61
      mView = view;
62 62
      mManager = new AroundTheWorldEffectsManager();
......
136 136

  
137 137
      try
138 138
        {
139
        Distorted.onSurfaceCreated(mView.getContext());
139
        Distorted.onCreate(mView.getContext());
140 140
        }
141 141
      catch(Exception ex)
142 142
        {
src/main/java/org/distorted/examples/bean/BeanRenderer.java
157 157

  
158 158
      try
159 159
        {
160
        Distorted.onSurfaceCreated(mView.getContext());
160
        Distorted.onCreate(mView.getContext());
161 161
        }
162 162
      catch(Exception ex)
163 163
        {
src/main/java/org/distorted/examples/catanddog/CatAndDogRenderer.java
119 119

  
120 120
      try
121 121
        {
122
        Distorted.onSurfaceCreated(mView.getContext());
122
        Distorted.onCreate(mView.getContext());
123 123
        }
124 124
      catch(Exception ex)
125 125
        {
src/main/java/org/distorted/examples/check/CheckRenderer.java
71 71

  
72 72
      CheckActivity act = (CheckActivity)mView.getContext();
73 73

  
74
      Distorted.setMaxVertex(act.getMaxV());
75
      Distorted.setMaxFragment(act.getMaxF());
74
      DistortedEffects.setMaxVertex(act.getMaxV());
75
      DistortedEffects.setMaxFragment(act.getMaxF());
76 76

  
77 77
      mScreen = new DistortedFramebuffer(0);
78 78
      }
......
183 183

  
184 184
      try
185 185
        {
186
        Distorted.onSurfaceCreated(mView.getContext());
186
        Distorted.onCreate(mView.getContext());
187 187
        }
188 188
      catch(Exception ex)
189 189
        {
src/main/java/org/distorted/examples/cubes/CubesRenderer.java
146 146
      
147 147
      try
148 148
        {
149
        Distorted.onSurfaceCreated(mView.getContext());
149
        Distorted.onCreate(mView.getContext());
150 150
        }
151 151
      catch(Exception ex)
152 152
        {
src/main/java/org/distorted/examples/deform/DeformRenderer.java
229 229

  
230 230
     try
231 231
       {
232
       Distorted.onSurfaceCreated(mView.getContext());
232
       Distorted.onCreate(mView.getContext());
233 233
       }
234 234
     catch(Exception ex)
235 235
       {
src/main/java/org/distorted/examples/differentbitmaps/DifferentBitmapsRenderer.java
175 175

  
176 176
      try
177 177
        {
178
        Distorted.onSurfaceCreated(mView.getContext());
178
        Distorted.onCreate(mView.getContext());
179 179
        }
180 180
      catch(Exception ex)
181 181
        {
src/main/java/org/distorted/examples/differenteffects/DifferentEffectsRenderer.java
176 176

  
177 177
     try
178 178
       {
179
       Distorted.onSurfaceCreated(mView.getContext());
179
       Distorted.onCreate(mView.getContext());
180 180
       }
181 181
     catch(Exception ex)
182 182
       {
src/main/java/org/distorted/examples/dynamic/DynamicRenderer.java
72 72
     {   
73 73
     try
74 74
       {
75
       Distorted.onSurfaceCreated(mView.getContext());
75
       Distorted.onCreate(mView.getContext());
76 76
       }
77 77
     catch(Exception ex)
78 78
       {
src/main/java/org/distorted/examples/effectqueue/EffectQueueRenderer.java
107 107

  
108 108
    try
109 109
      {
110
      Distorted.onSurfaceCreated(mView.getContext());
110
      Distorted.onCreate(mView.getContext());
111 111
      }
112 112
    catch(Exception ex)
113 113
      {
src/main/java/org/distorted/examples/effects3d/Effects3DActivity.java
400 400
    {
401 401
    firstScreen = false;
402 402

  
403
    Distorted.setMaxVertex(20);    // those have to be called before
404
    Distorted.setMaxFragment(3);   // any DistortedEffect get created!
403
    DistortedEffects.setMaxVertex(20);    // those have to be called before
404
    DistortedEffects.setMaxFragment(3);   // any DistortedEffect get created!
405 405

  
406 406
    if( mObjectType==1 )
407 407
      {
src/main/java/org/distorted/examples/effects3d/Effects3DRenderer.java
255 255

  
256 256
      try
257 257
        {
258
        Distorted.onSurfaceCreated(mView.getContext());
258
        Distorted.onCreate(mView.getContext());
259 259
        }
260 260
      catch(Exception ex)
261 261
        {
src/main/java/org/distorted/examples/fbo/FBORenderer.java
166 166
      
167 167
      try
168 168
        {
169
        Distorted.onSurfaceCreated(mView.getContext());
169
        Distorted.onCreate(mView.getContext());
170 170
        }
171 171
      catch(Exception ex)
172 172
        {
src/main/java/org/distorted/examples/flag/FlagRenderer.java
200 200
      
201 201
      try
202 202
        {
203
        Distorted.onSurfaceCreated(mView.getContext());
203
        Distorted.onCreate(mView.getContext());
204 204
        }
205 205
      catch(Exception ex)
206 206
        {
src/main/java/org/distorted/examples/girl/GirlRenderer.java
214 214

  
215 215
      try
216 216
        {
217
        Distorted.onSurfaceCreated(mView.getContext());
217
        Distorted.onCreate(mView.getContext());
218 218
        }
219 219
      catch(Exception ex)
220 220
        {
src/main/java/org/distorted/examples/listener/ListenerRenderer.java
64 64

  
65 65
   ListenerRenderer(GLSurfaceView v)
66 66
      {
67
      Distorted.setMaxVertex(NUM_BUBBLES);   
67
      DistortedEffects.setMaxVertex(NUM_BUBBLES);
68 68
      mView = v;
69 69
      mEffects = new DistortedEffects();
70 70
      mEffects.registerForMessages(this);
......
168 168
      
169 169
      try
170 170
        {
171
        Distorted.onSurfaceCreated(mView.getContext());
171
        Distorted.onCreate(mView.getContext());
172 172
        }
173 173
      catch(Exception ex)
174 174
        {
src/main/java/org/distorted/examples/matrix3d/Matrix3DRenderer.java
101 101

  
102 102
      try
103 103
        {
104
        Distorted.onSurfaceCreated(mView.getContext());
104
        Distorted.onCreate(mView.getContext());
105 105
        }
106 106
      catch(Exception ex)
107 107
        {
src/main/java/org/distorted/examples/mirror/MirrorRenderer.java
190 190

  
191 191
      try
192 192
        {
193
        Distorted.onSurfaceCreated(mView.getContext());
193
        Distorted.onCreate(mView.getContext());
194 194
        }
195 195
      catch(Exception ex)
196 196
        {
src/main/java/org/distorted/examples/monalisa/MonaLisaRenderer.java
140 140

  
141 141
      try
142 142
        {
143
        Distorted.onSurfaceCreated(mView.getContext());
143
        Distorted.onCreate(mView.getContext());
144 144
        }
145 145
      catch(Exception ex)
146 146
        {
src/main/java/org/distorted/examples/movingeffects/MovingEffectsRenderer.java
111 111
     {
112 112
     try
113 113
       {
114
       Distorted.onSurfaceCreated(mView.getContext());
114
       Distorted.onCreate(mView.getContext());
115 115
       }
116 116
     catch(Exception ex)
117 117
       {
src/main/java/org/distorted/examples/olimpic/OlimpicRenderer.java
177 177
      
178 178
      try
179 179
        {
180
        Distorted.onSurfaceCreated(mView.getContext());
180
        Distorted.onCreate(mView.getContext());
181 181
        }
182 182
      catch(Exception ex)
183 183
        {
src/main/java/org/distorted/examples/plainmonalisa/RenderThread.java
218 218

  
219 219
    try
220 220
      {
221
      Distorted.onSurfaceCreated(mView.getContext());
221
      Distorted.onCreate(mView.getContext());
222 222
      }
223 223
    catch(Exception ex)
224 224
      {
src/main/java/org/distorted/examples/projection/ProjectionRenderer.java
146 146

  
147 147
      try
148 148
        {
149
        Distorted.onSurfaceCreated(mView.getContext());
149
        Distorted.onCreate(mView.getContext());
150 150
        }
151 151
      catch(Exception ex)
152 152
        {
src/main/java/org/distorted/examples/quaternion/QuaternionRenderer.java
137 137
      
138 138
    try
139 139
      {
140
      Distorted.onSurfaceCreated(mView.getContext());
140
      Distorted.onCreate(mView.getContext());
141 141
      }
142 142
    catch(Exception ex)
143 143
      {
src/main/java/org/distorted/examples/save/SaveRenderer.java
252 252

  
253 253
    try
254 254
      {
255
      Distorted.onSurfaceCreated(mView.getContext());
255
      Distorted.onCreate(mView.getContext());
256 256
      }
257 257
    catch(Exception ex)
258 258
      {
src/main/java/org/distorted/examples/sink/SinkRenderer.java
134 134

  
135 135
    try
136 136
      {
137
      Distorted.onSurfaceCreated(mView.getContext());
137
      Distorted.onCreate(mView.getContext());
138 138
      }
139 139
    catch(Exception ex)
140 140
      {
src/main/java/org/distorted/examples/starwars/StarWarsRenderer.java
186 186

  
187 187
    try
188 188
      {
189
      Distorted.onSurfaceCreated(mView.getContext());
189
      Distorted.onCreate(mView.getContext());
190 190
      }
191 191
    catch(Exception ex)
192 192
      {
src/main/java/org/distorted/examples/wind/WindRenderer.java
130 130

  
131 131
      try
132 132
        {
133
        Distorted.onSurfaceCreated(mView.getContext());
133
        Distorted.onCreate(mView.getContext());
134 134
        }
135 135
      catch(Exception ex)
136 136
        {

Also available in: Unified diff