Revision 855ba24e
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/multiblur/MultiblurRenderer.java | ||
---|---|---|
110 | 110 |
|
111 | 111 |
public void onDrawFrame(GL10 glUnused) |
112 | 112 |
{ |
113 |
GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT); |
|
114 | 113 |
mScreen.render( System.currentTimeMillis() ); |
115 | 114 |
} |
116 | 115 |
|
... | ... | |
146 | 145 |
|
147 | 146 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
148 | 147 |
{ |
149 |
GLES30.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
150 |
|
|
151 | 148 |
InputStream is1 = mView.getContext().getResources().openRawResource(R.raw.cat); |
152 | 149 |
InputStream is2 = mView.getContext().getResources().openRawResource(R.raw.dog); |
153 | 150 |
Bitmap bitmap1,bitmap2; |
Also available in: Unified diff
New 'glClearColor' and 'glClearDepthf' APIs in OutputSurface. This fixes the 'transparency' regressions from last commit.