Revision 855ba24e
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/fbo/FBORenderer.java | ||
---|---|---|
89 | 89 |
|
90 | 90 |
public void onDrawFrame(GL10 glUnused) |
91 | 91 |
{ |
92 |
GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT); |
|
93 | 92 |
mScreen.render(System.currentTimeMillis()); |
94 | 93 |
} |
95 | 94 |
|
... | ... | |
123 | 122 |
|
124 | 123 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
125 | 124 |
{ |
126 |
GLES30.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
127 | 125 |
GLES30.glEnable(GLES30.GL_CULL_FACE); |
128 | 126 |
GLES30.glCullFace(GLES30.GL_BACK); |
129 | 127 |
GLES30.glFrontFace(GLES30.GL_CW); |
Also available in: Unified diff
New 'glClearColor' and 'glClearDepthf' APIs in OutputSurface. This fixes the 'transparency' regressions from last commit.