Revision e7a4ef16
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/olimpic/OlimpicRenderer.java | ||
---|---|---|
46 | 46 |
{ |
47 | 47 |
private static final int LEAF_SIZE = 100; |
48 | 48 |
private static final int NUM_CIRCLES = 5; |
49 |
private static final int NUM_LEAVES = 8;
|
|
49 |
private static final int NUM_LEAVES = 8;
|
|
50 | 50 |
|
51 | 51 |
private GLSurfaceView mView; |
52 | 52 |
private DistortedNode mScreen; |
... | ... | |
108 | 108 |
|
109 | 109 |
public void onDrawFrame(GL10 glUnused) |
110 | 110 |
{ |
111 |
GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
112 | 111 |
GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT); |
113 |
|
|
114 | 112 |
mScreen.draw(System.currentTimeMillis()); |
115 | 113 |
} |
116 | 114 |
|
... | ... | |
148 | 146 |
|
149 | 147 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
150 | 148 |
{ |
149 |
GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
|
150 |
|
|
151 | 151 |
InputStream is = mView.getContext().getResources().openRawResource(R.raw.leaf); |
152 | 152 |
Bitmap leaf; |
153 | 153 |
|
Also available in: Unified diff
Minor stuff