Revision 855ba24e
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/deform/DeformRenderer.java | ||
---|---|---|
180 | 180 |
|
181 | 181 |
public void onDrawFrame(GL10 glUnused) |
182 | 182 |
{ |
183 |
GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT); |
|
184 |
|
|
185 | 183 |
mPaint.setColor(0xffffffff); |
186 | 184 |
fpsCanvas.drawRect(0, 0, fpsW, fpsH, mPaint); |
187 | 185 |
mPaint.setColor(0xff000000); |
... | ... | |
230 | 228 |
|
231 | 229 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
232 | 230 |
{ |
233 |
GLES30.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
234 |
|
|
235 | 231 |
DistortedEffects.enableEffect(EffectNames.DISTORT); |
236 | 232 |
DistortedEffects.enableEffect(EffectNames.DEFORM); |
237 | 233 |
|
Also available in: Unified diff
New 'glClearColor' and 'glClearDepthf' APIs in OutputSurface. This fixes the 'transparency' regressions from last commit.