Revision f8634085
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/starwars/StarWarsRenderer.java | ||
---|---|---|
118 | 118 |
|
119 | 119 |
StarWarsRenderer(GLSurfaceView v) |
120 | 120 |
{ |
121 |
android.util.Log.d("STAR WARS", "constructor"); |
|
122 |
|
|
123 | 121 |
mView = v; |
124 | 122 |
|
125 | 123 |
mQuad = new MeshFlat(1,1); |
... | ... | |
147 | 145 |
|
148 | 146 |
public void onPause() |
149 | 147 |
{ |
150 |
android.util.Log.d("STAR WARS", "onPause"); |
|
151 |
|
|
152 | 148 |
mWidth = 0; |
153 | 149 |
mHeight= 0; |
154 | 150 |
} |
... | ... | |
165 | 161 |
|
166 | 162 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
167 | 163 |
{ |
168 |
android.util.Log.d("STAR WARS", "surfaceChanged"); |
|
169 |
|
|
170 |
|
|
171 | 164 |
if( mWidth!=width || mHeight!=height ) // after onPause() we get 2 calls here |
172 | 165 |
{ |
173 | 166 |
mWidth = width; |
... | ... | |
190 | 183 |
|
191 | 184 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
192 | 185 |
{ |
193 |
android.util.Log.d("STAR WARS", "surfaceCreated"); |
|
194 |
|
|
195 | 186 |
GLES30.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); |
196 | 187 |
|
197 | 188 |
setupBitmaps(); |
Also available in: Unified diff
Fix issue with Blur / Multiblur apps