Revision b01acdaf
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/save/SaveRenderer.java | ||
---|---|---|
33 | 33 |
import org.distorted.library.Distorted; |
34 | 34 |
import org.distorted.library.DistortedEffects; |
35 | 35 |
import org.distorted.library.DistortedTexture; |
36 |
import org.distorted.library.GridFlat;
|
|
36 |
import org.distorted.library.MeshFlat;
|
|
37 | 37 |
import org.distorted.library.DistortedFramebuffer; |
38 | 38 |
import org.distorted.library.EffectTypes; |
39 | 39 |
import org.distorted.library.type.Dynamic1D; |
... | ... | |
55 | 55 |
private GLSurfaceView mView; |
56 | 56 |
private DistortedTexture mTexture; |
57 | 57 |
private DistortedEffects mEffects; |
58 |
private GridFlat mGrid;
|
|
58 |
private MeshFlat mMesh;
|
|
59 | 59 |
private DistortedFramebuffer mScreen, mOffscreen; |
60 | 60 |
private Static1D s0; |
61 | 61 |
private Dynamic3D mScaleDyn; |
... | ... | |
156 | 156 |
{ |
157 | 157 |
mEffects.abortEffects(EffectTypes.MATRIX); |
158 | 158 |
mEffects.scale(mScaleFactor); |
159 |
mOffscreen.renderTo(mTexture, mGrid, mEffects, time );
|
|
159 |
mOffscreen.renderTo(mTexture, mMesh, mEffects, time );
|
|
160 | 160 |
applyMatrixEffects(scrWidth,scrHeight); |
161 | 161 |
|
162 | 162 |
int fW =(int)(mScale*bmpWidth); |
... | ... | |
180 | 180 |
isSaving = false; |
181 | 181 |
} |
182 | 182 |
|
183 |
mScreen.renderTo(mTexture, mGrid, mEffects, time );
|
|
183 |
mScreen.renderTo(mTexture, mMesh, mEffects, time );
|
|
184 | 184 |
} |
185 | 185 |
|
186 | 186 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
244 | 244 |
bmpHeight = bitmap.getHeight(); |
245 | 245 |
bmpWidth = bitmap.getWidth(); |
246 | 246 |
|
247 |
mGrid = new GridFlat(30,30*bmpHeight/bmpWidth);
|
|
247 |
mMesh = new MeshFlat(30,30*bmpHeight/bmpWidth);
|
|
248 | 248 |
mTexture = new DistortedTexture(bmpWidth,bmpHeight); |
249 | 249 |
mTexture.setTexture(bitmap); |
250 | 250 |
|
Also available in: Unified diff
Rename Grid to Mesh