Revision 855ba24e
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/projection/ProjectionRenderer.java | ||
---|---|---|
79 | 79 |
|
80 | 80 |
public void onDrawFrame(GL10 glUnused) |
81 | 81 |
{ |
82 |
GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT); |
|
83 | 82 |
mScreen.render( System.currentTimeMillis() ); |
84 | 83 |
} |
85 | 84 |
|
... | ... | |
130 | 129 |
|
131 | 130 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
132 | 131 |
{ |
133 |
GLES30.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
134 |
|
|
135 | 132 |
DistortedEffects.enableEffect(EffectNames.DISTORT); |
136 | 133 |
|
137 | 134 |
try |
Also available in: Unified diff
New 'glClearColor' and 'glClearDepthf' APIs in OutputSurface. This fixes the 'transparency' regressions from last commit.