Revision fe59d375
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/flag/FlagRenderer.java | ||
---|---|---|
27 | 27 |
import org.distorted.examples.R; |
28 | 28 |
import org.distorted.library.Distorted; |
29 | 29 |
import org.distorted.library.DistortedEffects; |
30 |
import org.distorted.library.DistortedFramebuffer; |
|
31 | 30 |
import org.distorted.library.DistortedScreen; |
32 | 31 |
import org.distorted.library.MeshCubes; |
33 | 32 |
import org.distorted.library.DistortedTexture; |
... | ... | |
53 | 52 |
private DistortedEffects mEffects; |
54 | 53 |
private DistortedTexture mTexture; |
55 | 54 |
private DistortedScreen mScreen; |
56 |
private MeshCubes mMesh; |
|
57 | 55 |
private DynamicQuat mQuatInt1, mQuatInt2; |
58 | 56 |
private Dynamic5D mWaveDyn; |
59 | 57 |
private Static5D mWaveSta1, mWaveSta2; |
... | ... | |
69 | 67 |
mView = v; |
70 | 68 |
|
71 | 69 |
mEffects = new DistortedEffects(); |
72 |
mMesh = new MeshCubes(50,30,false); |
|
73 | 70 |
mTexture = new DistortedTexture(500,300); |
74 | 71 |
|
75 | 72 |
mObjWidth = mTexture.getWidth(); |
... | ... | |
98 | 95 |
mEffects.wave(mWaveDyn, waveCenter, waveRegion); |
99 | 96 |
|
100 | 97 |
mScreen = new DistortedScreen(); |
98 |
mScreen.attach(mTexture,mEffects, new MeshCubes(50,30,false) ); |
|
101 | 99 |
} |
102 | 100 |
|
103 | 101 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
144 | 142 |
public void onDrawFrame(GL10 glUnused) |
145 | 143 |
{ |
146 | 144 |
GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT); |
147 |
mScreen.renderTo(mTexture, mMesh, mEffects, System.currentTimeMillis() );
|
|
145 |
mScreen.render( System.currentTimeMillis() );
|
|
148 | 146 |
} |
149 | 147 |
|
150 | 148 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Change the the render() API!
THis introduces some regressions with the Effects3D app.