Revision 855ba24e
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/mirror/MirrorRenderer.java | ||
---|---|---|
111 | 111 |
|
112 | 112 |
public void onDrawFrame(GL10 glUnused) |
113 | 113 |
{ |
114 |
GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT); |
|
115 |
|
|
116 | 114 |
long time = System.currentTimeMillis(); |
117 | 115 |
|
118 | 116 |
mOffScreen1.render(time); |
... | ... | |
163 | 161 |
|
164 | 162 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
165 | 163 |
{ |
166 |
GLES30.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
167 |
|
|
168 | 164 |
InputStream isM = mView.getContext().getResources().openRawResource(R.raw.mirror); |
169 | 165 |
InputStream isH = mView.getContext().getResources().openRawResource(R.raw.messi); |
170 | 166 |
|
Also available in: Unified diff
New 'glClearColor' and 'glClearDepthf' APIs in OutputSurface. This fixes the 'transparency' regressions from last commit.