Revision e7a4ef16
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/girl/GirlRenderer.java | ||
---|---|---|
151 | 151 |
|
152 | 152 |
public void onDrawFrame(GL10 glUnused) |
153 | 153 |
{ |
154 |
GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
155 | 154 |
GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT); |
156 |
|
|
157 | 155 |
mGirl.draw(System.currentTimeMillis()); |
158 | 156 |
} |
159 | 157 |
|
... | ... | |
186 | 184 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
187 | 185 |
|
188 | 186 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
189 |
{ |
|
187 |
{ |
|
188 |
GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
189 |
|
|
190 | 190 |
InputStream is = mView.getContext().getResources().openRawResource(R.raw.girl); |
191 | 191 |
Bitmap bitmap; |
192 | 192 |
|
Also available in: Unified diff
Minor stuff