Revision fe59d375
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/cubes/CubesRenderer.java | ||
---|---|---|
28 | 28 |
import org.distorted.examples.R; |
29 | 29 |
|
30 | 30 |
import org.distorted.library.DistortedEffects; |
31 |
import org.distorted.library.DistortedFramebuffer; |
|
32 | 31 |
import org.distorted.library.DistortedScreen; |
33 | 32 |
import org.distorted.library.DistortedTexture; |
34 | 33 |
import org.distorted.library.MeshObject; |
... | ... | |
90 | 89 |
public void onDrawFrame(GL10 glUnused) |
91 | 90 |
{ |
92 | 91 |
GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT); |
93 |
mScreen.renderTo(mTexture, mMesh, mEffects, System.currentTimeMillis() );
|
|
92 |
mScreen.render( System.currentTimeMillis() );
|
|
94 | 93 |
} |
95 | 94 |
|
96 | 95 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
144 | 143 |
} |
145 | 144 |
|
146 | 145 |
mTexture.setTexture(bitmap); |
147 |
|
|
146 |
|
|
147 |
mScreen.detachAll(); |
|
148 |
mScreen.attach(mTexture,mEffects,mMesh); |
|
149 |
|
|
148 | 150 |
try |
149 | 151 |
{ |
150 | 152 |
Distorted.onCreate(mView.getContext()); |
Also available in: Unified diff
Change the the render() API!
THis introduces some regressions with the Effects3D app.