Revision 855ba24e
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/effects3d/Effects3DRenderer.java | ||
---|---|---|
166 | 166 |
|
167 | 167 |
public void onDrawFrame(GL10 glUnused) |
168 | 168 |
{ |
169 |
GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT); |
|
170 | 169 |
mScreen.render(System.currentTimeMillis()); |
171 | 170 |
} |
172 | 171 |
|
... | ... | |
245 | 244 |
|
246 | 245 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
247 | 246 |
{ |
248 |
GLES30.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
249 |
|
|
250 | 247 |
Effects3DActivity act = (Effects3DActivity)mView.getContext(); |
251 | 248 |
|
252 | 249 |
InputStream isB = act.getResources().openRawResource(R.raw.water); |
Also available in: Unified diff
New 'glClearColor' and 'glClearDepthf' APIs in OutputSurface. This fixes the 'transparency' regressions from last commit.