Revision e7a4ef16
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/plainmonalisa/RenderThread.java | ||
---|---|---|
171 | 171 |
eglSurface = eglCore.createWindowSurface(surface); |
172 | 172 |
eglCore.makeCurrent(eglSurface); |
173 | 173 |
|
174 |
GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
175 |
|
|
174 | 176 |
InputStream is = mView.getContext().getResources().openRawResource(R.raw.monalisa); |
175 | 177 |
Bitmap bmp; |
176 | 178 |
|
... | ... | |
244 | 246 |
|
245 | 247 |
eglCore.makeCurrent(eglSurface); |
246 | 248 |
|
247 |
GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
248 | 249 |
GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT); |
249 | 250 |
monaLisa.draw(System.currentTimeMillis()); |
250 | 251 |
|
Also available in: Unified diff
Minor stuff