Revision fd89ecb6
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/fbo/FBORenderer.java | ||
---|---|---|
133 | 133 |
text.setTexture(bitmap2); |
134 | 134 |
DistortedEffectQueues textQueues = new DistortedEffectQueues(); |
135 | 135 |
|
136 |
mQueues.abortAllEffects(); |
|
137 |
|
|
136 | 138 |
mRoot = new DistortedObjectTree(lisa,mQueues,new GridFlat(1,1)); |
137 | 139 |
mRoot.attach(text,textQueues,new GridCubes(20,5,false)); |
138 | 140 |
|
src/main/java/org/distorted/examples/movingeffects/MovingEffectsRenderer.java | ||
---|---|---|
131 | 131 |
|
132 | 132 |
Distorted.onSurfaceChanged(texW, texH); |
133 | 133 |
mView.onSurfaceChanged(texW,texH); |
134 |
|
|
135 |
mRefresh = true; |
|
134 | 136 |
} |
135 | 137 |
|
136 | 138 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
143 | 145 |
|
144 | 146 |
if (mView.getCurrentEffect() == MovingEffectsSurfaceView.EFFECT_POINTS && mRefresh ) |
145 | 147 |
{ |
146 |
drawBackground();
|
|
148 |
drawBackground(); |
|
147 | 149 |
mView.drawCurve(mCanvas,time); |
148 | 150 |
mTexture.setTexture(mBitmap); |
149 | 151 |
mRefresh = false; |
Also available in: Unified diff
Fix 'FBO' and 'MovingEffects's behaviour after onPause().