Revision e7a4ef16
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/fbo/FBORenderer.java | ||
---|---|---|
62 | 62 |
|
63 | 63 |
public void onDrawFrame(GL10 glUnused) |
64 | 64 |
{ |
65 |
GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
66 | 65 |
GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT); |
67 |
|
|
68 | 66 |
mRoot.draw(System.currentTimeMillis()); |
69 | 67 |
} |
70 | 68 |
|
... | ... | |
98 | 96 |
|
99 | 97 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
100 | 98 |
{ |
99 |
GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
100 |
|
|
101 | 101 |
InputStream is1 = mView.getContext().getResources().openRawResource(R.raw.monalisa); |
102 | 102 |
InputStream is2 = mView.getContext().getResources().openRawResource(R.raw.fbo); |
103 | 103 |
|
Also available in: Unified diff
Minor stuff