Revision fe59d375
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/effectqueue/EffectQueueRenderer.java | ||
---|---|---|
30 | 30 |
import android.opengl.GLSurfaceView; |
31 | 31 |
|
32 | 32 |
import org.distorted.library.DistortedEffects; |
33 |
import org.distorted.library.DistortedFramebuffer; |
|
34 | 33 |
import org.distorted.library.DistortedScreen; |
35 | 34 |
import org.distorted.library.MeshFlat; |
36 | 35 |
import org.distorted.library.DistortedTexture; |
... | ... | |
106 | 105 |
} |
107 | 106 |
mTexture.setTexture(bitmap); |
108 | 107 |
|
108 |
mScreen.detachAll(); |
|
109 |
mScreen.attach(mTexture,mEffects,mMesh); |
|
110 |
|
|
109 | 111 |
try |
110 | 112 |
{ |
111 | 113 |
Distorted.onCreate(mView.getContext()); |
... | ... | |
131 | 133 |
public void onDrawFrame(GL10 glUnused) |
132 | 134 |
{ |
133 | 135 |
GLES30.glClear(GLES30.GL_COLOR_BUFFER_BIT | GLES30.GL_DEPTH_BUFFER_BIT); |
134 |
mScreen.renderTo(mTexture, mMesh, mEffects, System.currentTimeMillis() );
|
|
136 |
mScreen.render( System.currentTimeMillis() );
|
|
135 | 137 |
} |
136 | 138 |
|
137 | 139 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Change the the render() API!
THis introduces some regressions with the Effects3D app.