Revision 855ba24e
Added by Leszek Koltunski over 8 years ago
| src/main/java/org/distorted/examples/cubes/CubesRenderer.java | ||
|---|---|---|
| 88 | 88 |
|
| 89 | 89 |
public void onDrawFrame(GL10 glUnused) |
| 90 | 90 |
{
|
| 91 |
GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT); |
|
| 92 | 91 |
mScreen.render( System.currentTimeMillis() ); |
| 93 | 92 |
} |
| 94 | 93 |
|
| ... | ... | |
| 124 | 123 |
|
| 125 | 124 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
| 126 | 125 |
{
|
| 127 |
GLES30.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
| 128 |
|
|
| 129 | 126 |
InputStream is = mView.getContext().getResources().openRawResource(R.raw.grid); |
| 130 | 127 |
Bitmap bitmap; |
| 131 | 128 |
|
Also available in: Unified diff
New 'glClearColor' and 'glClearDepthf' APIs in OutputSurface. This fixes the 'transparency' regressions from last commit.