Revision 855ba24e
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/bean/BeanRenderer.java | ||
---|---|---|
95 | 95 |
|
96 | 96 |
public void onDrawFrame(GL10 glUnused) |
97 | 97 |
{ |
98 |
GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT); |
|
99 | 98 |
mScreen.render( System.currentTimeMillis() ); |
100 | 99 |
} |
101 | 100 |
|
... | ... | |
129 | 128 |
|
130 | 129 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
131 | 130 |
{ |
132 |
GLES30.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
133 |
|
|
134 | 131 |
InputStream is = mView.getContext().getResources().openRawResource(R.raw.bean); |
135 | 132 |
Bitmap bitmap; |
136 | 133 |
|
Also available in: Unified diff
New 'glClearColor' and 'glClearDepthf' APIs in OutputSurface. This fixes the 'transparency' regressions from last commit.