Revision 855ba24e
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/olimpic/OlimpicRenderer.java | ||
---|---|---|
140 | 140 |
|
141 | 141 |
public void onDrawFrame(GL10 glUnused) |
142 | 142 |
{ |
143 |
GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT); |
|
144 | 143 |
mCurrRendered = mScreen.render(System.currentTimeMillis()); |
145 | 144 |
|
146 | 145 |
if( mCurrRendered!=mPrevRendered ) |
... | ... | |
191 | 190 |
|
192 | 191 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
193 | 192 |
{ |
194 |
GLES30.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
195 |
|
|
196 | 193 |
InputStream is = mView.getContext().getResources().openRawResource(R.raw.leaf); |
197 | 194 |
Bitmap leaf; |
198 | 195 |
|
Also available in: Unified diff
New 'glClearColor' and 'glClearDepthf' APIs in OutputSurface. This fixes the 'transparency' regressions from last commit.