Revision 855ba24e
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/blur/BlurRenderer.java | ||
---|---|---|
82 | 82 |
|
83 | 83 |
public void onDrawFrame(GL10 glUnused) |
84 | 84 |
{ |
85 |
GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT); |
|
86 | 85 |
mScreen.render( System.currentTimeMillis() ); |
87 | 86 |
} |
88 | 87 |
|
... | ... | |
116 | 115 |
|
117 | 116 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
118 | 117 |
{ |
119 |
GLES30.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
120 |
|
|
121 | 118 |
InputStream is = mView.getContext().getResources().openRawResource(R.raw.dog); |
122 | 119 |
Bitmap bitmap; |
123 | 120 |
|
Also available in: Unified diff
New 'glClearColor' and 'glClearDepthf' APIs in OutputSurface. This fixes the 'transparency' regressions from last commit.