Revision 95bc9f69
Added by Leszek Koltunski about 8 years ago
src/main/java/org/distorted/examples/deform/DeformRenderer.java | ||
---|---|---|
93 | 93 |
fpsQueues = new DistortedEffectQueues(); |
94 | 94 |
stretchQueues = new DistortedEffectQueues(); |
95 | 95 |
|
96 |
mRegion = new Static4D(0,0,0,0);
|
|
96 |
mRegion = new Static4D(0,0,50,50);
|
|
97 | 97 |
|
98 | 98 |
durations = new long[NUM_FRAMES+1]; |
99 | 99 |
currDuration = 0; |
... | ... | |
167 | 167 |
|
168 | 168 |
public void onPause() |
169 | 169 |
{ |
170 |
bitmapCreated = false;
|
|
170 |
bitmapCreated = false; |
|
171 | 171 |
} |
172 | 172 |
|
173 | 173 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
198 | 198 |
scrHeight = height; |
199 | 199 |
scrWidth = width; |
200 | 200 |
|
201 |
setRegionRadius(50); |
|
202 |
|
|
203 | 201 |
Distorted.onSurfaceChanged(width, height); |
204 | 202 |
|
205 | 203 |
if( !bitmapCreated ) |
206 | 204 |
{ |
207 | 205 |
createBitmap(scrWidth/2,scrHeight/2); |
206 |
stretchQueues.abortAllEffects(); |
|
207 |
fpsQueues.abortAllEffects(); |
|
208 | 208 |
stretchQueues.move( new Static3D(scrWidth/4,scrHeight/4,0) ); |
209 | 209 |
fpsQueues.move( new Static3D(5,5,0) ); |
210 | 210 |
bitmapCreated=true; |
src/main/java/org/distorted/examples/projection/ProjectionRenderer.java | ||
---|---|---|
98 | 98 |
mWidth = width; |
99 | 99 |
mHeight= height; |
100 | 100 |
|
101 |
Distorted.setProjection(mF,mX,mY); |
|
102 |
mQueues.abortAllEffects(); |
|
103 |
|
|
101 | 104 |
Paint paint = new Paint(); |
102 | 105 |
mTexture = new DistortedTexture(width,height); |
103 | 106 |
mGrid = new GridFlat(50,50*height/width); |
Also available in: Unified diff
Fix 'Deform' and 'Projection's behaviour after onPause().