Revision bc29e409
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/deform/DeformRenderer.java | ||
---|---|---|
182 | 182 |
|
183 | 183 |
long time = System.currentTimeMillis(); |
184 | 184 |
|
185 |
stretchEffects.draw(time,stretchTexture,stretchGrid,mScreen);
|
|
185 |
mScreen.renderTo(stretchTexture,stretchGrid,stretchEffects,time);
|
|
186 | 186 |
|
187 | 187 |
mPaint.setColor(0xffffffff); |
188 | 188 |
fpsCanvas.drawRect(0, 0, fpsW, fpsH, mPaint); |
... | ... | |
190 | 190 |
fpsCanvas.drawText(fpsString, fpsW/2, 5*fpsH/6, mPaint); |
191 | 191 |
|
192 | 192 |
fpsTexture.setTexture(fpsBitmap); |
193 |
fpsEffects.draw(time,fpsTexture,fpsGrid,mScreen);
|
|
193 |
mScreen.renderTo(fpsTexture,fpsGrid,fpsEffects,time);
|
|
194 | 194 |
|
195 | 195 |
computeFPS(time); |
196 | 196 |
} |
Also available in: Unified diff
Again change of API. Now instead of the 'DistortedEffects.draw() and DistortedTree.draw()' we have 'DistortedFramebuffer.renderTo()'