Revision e7a4ef16
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/bean/BeanRenderer.java | ||
---|---|---|
88 | 88 |
|
89 | 89 |
public void onDrawFrame(GL10 glUnused) |
90 | 90 |
{ |
91 |
GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
92 | 91 |
GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT); |
93 |
|
|
94 | 92 |
mBean.draw(System.currentTimeMillis()); |
95 | 93 |
} |
96 | 94 |
|
... | ... | |
124 | 122 |
|
125 | 123 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
126 | 124 |
{ |
125 |
GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
126 |
|
|
127 | 127 |
InputStream is = mView.getContext().getResources().openRawResource(R.raw.bean); |
128 | 128 |
Bitmap bitmap; |
129 | 129 |
|
Also available in: Unified diff
Minor stuff