Revision 855ba24e
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/differentbitmaps/DifferentBitmapsRenderer.java | ||
---|---|---|
77 | 77 |
mEffects[0].distort(dDistort,mPoint); // keep moving the whole bitmap left and right. |
78 | 78 |
|
79 | 79 |
mScreen = new DistortedScreen(); |
80 |
mScreen.glClearColor(1.0f, 1.0f, 1.0f, 1.0f); |
|
80 | 81 |
} |
81 | 82 |
|
82 | 83 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
106 | 107 |
|
107 | 108 |
public void onDrawFrame(GL10 glUnused) |
108 | 109 |
{ |
109 |
GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT); |
|
110 | 110 |
mScreen.render( System.currentTimeMillis() ); |
111 | 111 |
} |
112 | 112 |
|
... | ... | |
150 | 150 |
|
151 | 151 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
152 | 152 |
{ |
153 |
GLES30.glClearColor(1.0f, 1.0f, 1.0f, 1.0f); |
|
154 |
|
|
155 | 153 |
Bitmap bitmap0= readBitmap(R.raw.dog); |
156 | 154 |
Bitmap bitmap1= readBitmap(R.raw.face); |
157 | 155 |
Bitmap bitmap2= readBitmap(R.raw.cat); |
Also available in: Unified diff
New 'glClearColor' and 'glClearDepthf' APIs in OutputSurface. This fixes the 'transparency' regressions from last commit.