Revision e7a4ef16
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/effects3d/Effects3DRenderer.java | ||
---|---|---|
119 | 119 |
|
120 | 120 |
public void onDrawFrame(GL10 glUnused) |
121 | 121 |
{ |
122 |
GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
123 | 122 |
GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT); |
124 | 123 |
|
125 | 124 |
long time = System.currentTimeMillis(); |
... | ... | |
208 | 207 |
|
209 | 208 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
210 | 209 |
{ |
210 |
GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
211 |
|
|
211 | 212 |
Effects3DActivity act = (Effects3DActivity)mView.getContext(); |
212 | 213 |
|
213 | 214 |
InputStream is1 = act.getResources().openRawResource(R.raw.water); |
Also available in: Unified diff
Minor stuff