Revision 855ba24e
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/matrix3d/Matrix3DRenderer.java | ||
---|---|---|
55 | 55 |
|
56 | 56 |
public void onDrawFrame(GL10 glUnused) |
57 | 57 |
{ |
58 |
GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT); |
|
59 | 58 |
mScreen.render( System.currentTimeMillis() ); |
60 | 59 |
} |
61 | 60 |
|
... | ... | |
87 | 86 |
|
88 | 87 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
89 | 88 |
{ |
90 |
GLES30.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
91 |
|
|
92 | 89 |
Matrix3DActivity act = (Matrix3DActivity)mView.getContext(); |
93 | 90 |
|
94 | 91 |
mTexture.setTexture(act.getBitmap()); |
Also available in: Unified diff
New 'glClearColor' and 'glClearDepthf' APIs in OutputSurface. This fixes the 'transparency' regressions from last commit.