Revision 625c67de
Added by Leszek Koltunski about 2 years ago
src/main/java/org/distorted/examples/aroundtheworld/AroundTheWorldRenderer.java | ||
---|---|---|
163 | 163 |
android.util.Log.e("AroundTheWorld", ex.getMessage() ); |
164 | 164 |
} |
165 | 165 | |
166 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
167 | ||
168 |
public int openGlVersion() |
|
169 |
{ |
|
170 |
Context context = mView.getContext(); |
|
171 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
172 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
173 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
174 |
int major = glESversion >> 16; |
|
175 |
int minor = glESversion & 0xff; |
|
176 | ||
177 |
return 100*major + 10*minor; |
|
178 |
} |
|
179 | ||
180 | 166 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
181 | 167 | |
182 | 168 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/bean/BeanRenderer.java | ||
---|---|---|
179 | 179 |
android.util.Log.e("Bean", ex.getMessage() ); |
180 | 180 |
} |
181 | 181 | |
182 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
183 | ||
184 |
public int openGlVersion() |
|
185 |
{ |
|
186 |
Context context = mView.getContext(); |
|
187 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
188 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
189 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
190 |
int major = glESversion >> 16; |
|
191 |
int minor = glESversion & 0xff; |
|
192 | ||
193 |
return 100*major + 10*minor; |
|
194 |
} |
|
195 | ||
196 | 182 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
197 | 183 | |
198 | 184 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/blur/BlurRenderer.java | ||
---|---|---|
188 | 188 |
android.util.Log.e("Blur", ex.getMessage() ); |
189 | 189 |
} |
190 | 190 | |
191 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
192 | ||
193 |
public int openGlVersion() |
|
194 |
{ |
|
195 |
Context context = mView.getContext(); |
|
196 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
197 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
198 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
199 |
int major = glESversion >> 16; |
|
200 |
int minor = glESversion & 0xff; |
|
201 | ||
202 |
return 100*major + 10*minor; |
|
203 |
} |
|
204 | ||
205 | 191 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
206 | 192 | |
207 | 193 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/catanddog/CatAndDogRenderer.java | ||
---|---|---|
175 | 175 |
android.util.Log.e("CatAndDog", ex.getMessage() ); |
176 | 176 |
} |
177 | 177 | |
178 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
179 | ||
180 |
public int openGlVersion() |
|
181 |
{ |
|
182 |
Context context = mView.getContext(); |
|
183 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
184 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
185 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
186 |
int major = glESversion >> 16; |
|
187 |
int minor = glESversion & 0xff; |
|
188 | ||
189 |
return 100*major + 10*minor; |
|
190 |
} |
|
191 | ||
192 | 178 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
193 | 179 | |
194 | 180 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/check/CheckRenderer.java | ||
---|---|---|
259 | 259 |
}); |
260 | 260 |
} |
261 | 261 | |
262 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
263 | ||
264 |
public int openGlVersion() |
|
265 |
{ |
|
266 |
Context context = mView.getContext(); |
|
267 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
268 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
269 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
270 |
int major = glESversion >> 16; |
|
271 |
int minor = glESversion & 0xff; |
|
272 | ||
273 |
return 100*major + 10*minor; |
|
274 |
} |
|
275 | ||
276 | 262 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
277 | 263 | |
278 | 264 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/deferredjob/DeferredJobRenderer.java | ||
---|---|---|
269 | 269 |
android.util.Log.e("DeferredJob", ex.getMessage() ); |
270 | 270 |
} |
271 | 271 | |
272 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
273 | ||
274 |
public int openGlVersion() |
|
275 |
{ |
|
276 |
Context context = mView.getContext(); |
|
277 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
278 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
279 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
280 |
int major = glESversion >> 16; |
|
281 |
int minor = glESversion & 0xff; |
|
282 | ||
283 |
return 100*major + 10*minor; |
|
284 |
} |
|
285 | ||
286 | 272 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
287 | 273 | |
288 | 274 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/deform/DeformRenderer.java | ||
---|---|---|
330 | 330 |
android.util.Log.e("Deform", ex.getMessage() ); |
331 | 331 |
} |
332 | 332 | |
333 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
334 | ||
335 |
public int openGlVersion() |
|
336 |
{ |
|
337 |
Context context = mView.getContext(); |
|
338 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
339 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
340 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
341 |
int major = glESversion >> 16; |
|
342 |
int minor = glESversion & 0xff; |
|
343 | ||
344 |
return 100*major + 10*minor; |
|
345 |
} |
|
346 | ||
347 | 333 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
348 | 334 | |
349 | 335 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/differentbitmaps/DifferentBitmapsRenderer.java | ||
---|---|---|
207 | 207 |
android.util.Log.e("DifferentBitmaps", ex.getMessage() ); |
208 | 208 |
} |
209 | 209 | |
210 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
211 | ||
212 |
public int openGlVersion() |
|
213 |
{ |
|
214 |
Context context = mView.getContext(); |
|
215 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
216 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
217 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
218 |
int major = glESversion >> 16; |
|
219 |
int minor = glESversion & 0xff; |
|
220 | ||
221 |
return 100*major + 10*minor; |
|
222 |
} |
|
223 | ||
224 | 210 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
225 | 211 | |
226 | 212 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/differenteffects/DifferentEffectsRenderer.java | ||
---|---|---|
205 | 205 |
android.util.Log.e("DifferentEffects", ex.getMessage() ); |
206 | 206 |
} |
207 | 207 | |
208 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
209 | ||
210 |
public int openGlVersion() |
|
211 |
{ |
|
212 |
Context context = mView.getContext(); |
|
213 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
214 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
215 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
216 |
int major = glESversion >> 16; |
|
217 |
int minor = glESversion & 0xff; |
|
218 | ||
219 |
return 100*major + 10*minor; |
|
220 |
} |
|
221 | ||
222 | 208 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
223 | 209 | |
224 | 210 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/dynamic/DynamicRenderer.java | ||
---|---|---|
127 | 127 |
android.util.Log.e("Dynamic", ex.getMessage() ); |
128 | 128 |
} |
129 | 129 | |
130 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
131 | ||
132 |
public int openGlVersion() |
|
133 |
{ |
|
134 |
Context context = mView.getContext(); |
|
135 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
136 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
137 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
138 |
int major = glESversion >> 16; |
|
139 |
int minor = glESversion & 0xff; |
|
140 | ||
141 |
return 100*major + 10*minor; |
|
142 |
} |
|
143 | ||
144 | 130 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
145 | 131 | |
146 | 132 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/earth/EarthRenderer.java | ||
---|---|---|
288 | 288 |
android.util.Log.e("Earth", ex.getMessage() ); |
289 | 289 |
} |
290 | 290 | |
291 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
292 | ||
293 |
public int openGlVersion() |
|
294 |
{ |
|
295 |
Context context = mView.getContext(); |
|
296 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
297 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
298 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
299 |
int major = glESversion >> 16; |
|
300 |
int minor = glESversion & 0xff; |
|
301 | ||
302 |
return 100*major + 10*minor; |
|
303 |
} |
|
304 | ||
305 | 291 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
306 | 292 | |
307 | 293 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/effectqueue/EffectQueueRenderer.java | ||
---|---|---|
166 | 166 |
android.util.Log.e("EffectQueue", ex.getMessage() ); |
167 | 167 |
} |
168 | 168 | |
169 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
170 | ||
171 |
public int openGlVersion() |
|
172 |
{ |
|
173 |
Context context = mView.getContext(); |
|
174 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
175 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
176 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
177 |
int major = glESversion >> 16; |
|
178 |
int minor = glESversion & 0xff; |
|
179 | ||
180 |
return 100*major + 10*minor; |
|
181 |
} |
|
182 | ||
183 | 169 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
184 | 170 | |
185 | 171 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/flag/FlagRenderer.java | ||
---|---|---|
207 | 207 |
android.util.Log.e("Flag", ex.getMessage() ); |
208 | 208 |
} |
209 | 209 | |
210 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
211 | ||
212 |
public int openGlVersion() |
|
213 |
{ |
|
214 |
Context context = mView.getContext(); |
|
215 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
216 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
217 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
218 |
int major = glESversion >> 16; |
|
219 |
int minor = glESversion & 0xff; |
|
220 | ||
221 |
return 100*major + 10*minor; |
|
222 |
} |
|
223 | ||
224 | 210 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
225 | 211 | |
226 | 212 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/flatblur/FlatBlurRenderer.java | ||
---|---|---|
94 | 94 |
android.util.Log.e("FlatBlur", ex.getMessage() ); |
95 | 95 |
} |
96 | 96 | |
97 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
98 | ||
99 |
public int openGlVersion() |
|
100 |
{ |
|
101 |
Context context = mView.getContext(); |
|
102 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
103 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
104 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
105 |
int major = glESversion >> 16; |
|
106 |
int minor = glESversion & 0xff; |
|
107 | ||
108 |
return 100*major + 10*minor; |
|
109 |
} |
|
110 | ||
111 | 97 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
112 | 98 | |
113 | 99 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/flatblur2/FlatBlur2Renderer.java | ||
---|---|---|
229 | 229 |
android.util.Log.e("FlatBlur2", ex.getMessage() ); |
230 | 230 |
} |
231 | 231 | |
232 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
233 | ||
234 |
public int openGlVersion() |
|
235 |
{ |
|
236 |
Context context = mView.getContext(); |
|
237 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
238 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
239 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
240 |
int major = glESversion >> 16; |
|
241 |
int minor = glESversion & 0xff; |
|
242 | ||
243 |
return 100*major + 10*minor; |
|
244 |
} |
|
245 | ||
246 | 232 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
247 | 233 | |
248 | 234 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/generic/GenericRenderer.java | ||
---|---|---|
336 | 336 |
android.util.Log.e("Generic", ex.getMessage() ); |
337 | 337 |
} |
338 | 338 | |
339 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
340 | ||
341 |
public int openGlVersion() |
|
342 |
{ |
|
343 |
Context context = mView.getContext(); |
|
344 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
345 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
346 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
347 |
int major = glESversion >> 16; |
|
348 |
int minor = glESversion & 0xff; |
|
349 | ||
350 |
return 100*major + 10*minor; |
|
351 |
} |
|
352 | ||
353 | 339 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
354 | 340 | |
355 | 341 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/girl/GirlRenderer.java | ||
---|---|---|
226 | 226 |
android.util.Log.e("Girl", ex.getMessage() ); |
227 | 227 |
} |
228 | 228 | |
229 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
230 | ||
231 |
public int openGlVersion() |
|
232 |
{ |
|
233 |
Context context = mView.getContext(); |
|
234 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
235 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
236 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
237 |
int major = glESversion >> 16; |
|
238 |
int minor = glESversion & 0xff; |
|
239 | ||
240 |
return 100*major + 10*minor; |
|
241 |
} |
|
242 | ||
243 | 229 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
244 | 230 | |
245 | 231 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/glow/GlowRenderer.java | ||
---|---|---|
163 | 163 |
android.util.Log.e("Glow", ex.getMessage() ); |
164 | 164 |
} |
165 | 165 | |
166 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
167 | ||
168 |
public int openGlVersion() |
|
169 |
{ |
|
170 |
Context context = mView.getContext(); |
|
171 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
172 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
173 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
174 |
int major = glESversion >> 16; |
|
175 |
int minor = glESversion & 0xff; |
|
176 | ||
177 |
return 100*major + 10*minor; |
|
178 |
} |
|
179 | ||
180 | 166 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
181 | 167 | |
182 | 168 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/inflate/InflateRenderer.java | ||
---|---|---|
172 | 172 |
android.util.Log.e("Inflate", ex.getMessage() ); |
173 | 173 |
} |
174 | 174 | |
175 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
176 | ||
177 |
public int openGlVersion() |
|
178 |
{ |
|
179 |
Context context = mView.getContext(); |
|
180 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
181 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
182 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
183 |
int major = glESversion >> 16; |
|
184 |
int minor = glESversion & 0xff; |
|
185 | ||
186 |
return 100*major + 10*minor; |
|
187 |
} |
|
188 | ||
189 | 175 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
190 | 176 | |
191 | 177 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/listener/ListenerRenderer.java | ||
---|---|---|
191 | 191 |
android.util.Log.e("Listener", ex.getMessage() ); |
192 | 192 |
} |
193 | 193 | |
194 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
195 | ||
196 |
public int openGlVersion() |
|
197 |
{ |
|
198 |
Context context = mView.getContext(); |
|
199 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
200 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
201 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
202 |
int major = glESversion >> 16; |
|
203 |
int minor = glESversion & 0xff; |
|
204 | ||
205 |
return 100*major + 10*minor; |
|
206 |
} |
|
207 | ||
208 | 194 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
209 | 195 | |
210 | 196 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/meshfile/MeshFileRenderer.java | ||
---|---|---|
412 | 412 |
android.util.Log.e("MeshFile", ex.getMessage() ); |
413 | 413 |
} |
414 | 414 | |
415 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
416 | ||
417 |
public int openGlVersion() |
|
418 |
{ |
|
419 |
Context context = mView.getContext(); |
|
420 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
421 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
422 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
423 |
int major = glESversion >> 16; |
|
424 |
int minor = glESversion & 0xff; |
|
425 | ||
426 |
return 100*major + 10*minor; |
|
427 |
} |
|
428 | ||
429 | 415 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
430 | 416 | |
431 | 417 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/meshjoin/MeshJoinRenderer.java | ||
---|---|---|
295 | 295 |
android.util.Log.e("MeshJoin", ex.getMessage() ); |
296 | 296 |
} |
297 | 297 | |
298 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
299 | ||
300 |
public int openGlVersion() |
|
301 |
{ |
|
302 |
Context context = mView.getContext(); |
|
303 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
304 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
305 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
306 |
int major = glESversion >> 16; |
|
307 |
int minor = glESversion & 0xff; |
|
308 | ||
309 |
return 100*major + 10*minor; |
|
310 |
} |
|
311 | ||
312 | 298 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
313 | 299 | |
314 | 300 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/mirror/MirrorRenderer.java | ||
---|---|---|
236 | 236 |
android.util.Log.e("Mirror", ex.getMessage() ); |
237 | 237 |
} |
238 | 238 | |
239 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
240 | ||
241 |
public int openGlVersion() |
|
242 |
{ |
|
243 |
Context context = mView.getContext(); |
|
244 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
245 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
246 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
247 |
int major = glESversion >> 16; |
|
248 |
int minor = glESversion & 0xff; |
|
249 | ||
250 |
return 100*major + 10*minor; |
|
251 |
} |
|
252 | ||
253 | 239 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
254 | 240 | |
255 | 241 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/monalisa/MonaLisaRenderer.java | ||
---|---|---|
178 | 178 |
android.util.Log.e("MonaLisa", ex.getMessage() ); |
179 | 179 |
} |
180 | 180 | |
181 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
182 | ||
183 |
public int openGlVersion() |
|
184 |
{ |
|
185 |
Context context = mView.getContext(); |
|
186 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
187 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
188 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
189 |
int major = glESversion >> 16; |
|
190 |
int minor = glESversion & 0xff; |
|
191 | ||
192 |
return 100*major + 10*minor; |
|
193 |
} |
|
194 | ||
195 | 181 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
196 | 182 | |
197 | 183 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/movingeffects/MovingEffectsRenderer.java | ||
---|---|---|
197 | 197 |
android.util.Log.e("MovingEffects", ex.getMessage() ); |
198 | 198 |
} |
199 | 199 | |
200 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
201 | ||
202 |
public int openGlVersion() |
|
203 |
{ |
|
204 |
Context context = mView.getContext(); |
|
205 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
206 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
207 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
208 |
int major = glESversion >> 16; |
|
209 |
int minor = glESversion & 0xff; |
|
210 | ||
211 |
return 100*major + 10*minor; |
|
212 |
} |
|
213 | ||
214 | 200 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
215 | 201 | |
216 | 202 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/movingglow/MovingGlowRenderer.java | ||
---|---|---|
219 | 219 |
android.util.Log.e("MovingGlow", ex.getMessage() ); |
220 | 220 |
} |
221 | 221 | |
222 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
223 | ||
224 |
public int openGlVersion() |
|
225 |
{ |
|
226 |
Context context = mView.getContext(); |
|
227 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
228 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
229 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
230 |
int major = glESversion >> 16; |
|
231 |
int minor = glESversion & 0xff; |
|
232 | ||
233 |
return 100*major + 10*minor; |
|
234 |
} |
|
235 | ||
236 | 222 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
237 | 223 | |
238 | 224 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/multiblur/MultiblurRenderer.java | ||
---|---|---|
270 | 270 |
android.util.Log.e("Multiblur", ex.getMessage() ); |
271 | 271 |
} |
272 | 272 | |
273 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
274 | ||
275 |
public int openGlVersion() |
|
276 |
{ |
|
277 |
Context context = mView.getContext(); |
|
278 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
279 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
280 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
281 |
int major = glESversion >> 16; |
|
282 |
int minor = glESversion & 0xff; |
|
283 | ||
284 |
return 100*major + 10*minor; |
|
285 |
} |
|
286 | ||
287 | 273 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
288 | 274 | |
289 | 275 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/objecttree/ObjectTreeRenderer.java | ||
---|---|---|
218 | 218 |
android.util.Log.e("ObjectTree", ex.getMessage() ); |
219 | 219 |
} |
220 | 220 | |
221 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
222 | ||
223 |
public int openGlVersion() |
|
224 |
{ |
|
225 |
Context context = mView.getContext(); |
|
226 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
227 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
228 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
229 |
int major = glESversion >> 16; |
|
230 |
int minor = glESversion & 0xff; |
|
231 | ||
232 |
return 100*major + 10*minor; |
|
233 |
} |
|
234 | ||
235 | 221 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
236 | 222 | |
237 | 223 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/olimpic/OlimpicRenderer.java | ||
---|---|---|
223 | 223 |
android.util.Log.e("Olympic", ex.getMessage() ); |
224 | 224 |
} |
225 | 225 | |
226 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
227 | ||
228 |
public int openGlVersion() |
|
229 |
{ |
|
230 |
Context context = mView.getContext(); |
|
231 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
232 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
233 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
234 |
int major = glESversion >> 16; |
|
235 |
int minor = glESversion & 0xff; |
|
236 | ||
237 |
return 100*major + 10*minor; |
|
238 |
} |
|
239 | ||
240 | 226 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
241 | 227 | |
242 | 228 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/postprocesstree/PostprocessTreeRenderer.java | ||
---|---|---|
201 | 201 |
android.util.Log.e("PostprocessTree", ex.getMessage() ); |
202 | 202 |
} |
203 | 203 | |
204 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
205 | ||
206 |
public int openGlVersion() |
|
207 |
{ |
|
208 |
Context context = mView.getContext(); |
|
209 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
210 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
211 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
212 |
int major = glESversion >> 16; |
|
213 |
int minor = glESversion & 0xff; |
|
214 | ||
215 |
return 100*major + 10*minor; |
|
216 |
} |
|
217 | ||
218 | 204 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
219 | 205 | |
220 | 206 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/predeform/PredeformRenderer.java | ||
---|---|---|
198 | 198 |
android.util.Log.e("Predeform", ex.getMessage() ); |
199 | 199 |
} |
200 | 200 | |
201 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
202 | ||
203 |
public int openGlVersion() |
|
204 |
{ |
|
205 |
Context context = mView.getContext(); |
|
206 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
207 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
208 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
209 |
int major = glESversion >> 16; |
|
210 |
int minor = glESversion & 0xff; |
|
211 | ||
212 |
return 100*major + 10*minor; |
|
213 |
} |
|
214 | ||
215 | 201 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
216 | 202 | |
217 | 203 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/projection/ProjectionRenderer.java | ||
---|---|---|
165 | 165 |
android.util.Log.e("Projection", ex.getMessage() ); |
166 | 166 |
} |
167 | 167 | |
168 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
169 | ||
170 |
public int openGlVersion() |
|
171 |
{ |
|
172 |
Context context = mView.getContext(); |
|
173 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
174 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
175 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
176 |
int major = glESversion >> 16; |
|
177 |
int minor = glESversion & 0xff; |
|
178 | ||
179 |
return 100*major + 10*minor; |
|
180 |
} |
|
181 | ||
182 | 168 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
183 | 169 | |
184 | 170 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/quaternion/QuaternionRenderer.java | ||
---|---|---|
149 | 149 |
android.util.Log.e("Quaternion", ex.getMessage() ); |
150 | 150 |
} |
151 | 151 | |
152 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
153 | ||
154 |
public int openGlVersion() |
|
155 |
{ |
|
156 |
Context context = mView.getContext(); |
|
157 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
158 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
159 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
160 |
int major = glESversion >> 16; |
|
161 |
int minor = glESversion & 0xff; |
|
162 | ||
163 |
return 100*major + 10*minor; |
|
164 |
} |
|
165 | ||
166 | 152 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
167 | 153 | |
168 | 154 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/rubik/RubikRenderer.java | ||
---|---|---|
164 | 164 | |
165 | 165 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
166 | 166 | |
167 |
public int openGlVersion() |
|
168 |
{ |
|
169 |
Context context = mView.getContext(); |
|
170 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
171 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
172 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
173 |
int major = glESversion >> 16; |
|
174 |
int minor = glESversion & 0xff; |
|
175 | ||
176 |
return 100*major + 10*minor; |
|
177 |
} |
|
178 | ||
179 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
180 | ||
181 |
public InputStream localFile(int fileID) |
|
167 |
public InputStream localFile(int fileID) |
|
182 | 168 |
{ |
183 | 169 |
return mResources.openRawResource(fileID); |
184 | 170 |
} |
185 | 171 | |
186 | 172 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
187 | 173 | |
188 |
public void logMessage(String message) |
|
174 |
public void logMessage(String message)
|
|
189 | 175 |
{ |
190 | 176 |
android.util.Log.e("Rubik", message ); |
191 | 177 |
} |
src/main/java/org/distorted/examples/save/SaveRenderer.java | ||
---|---|---|
265 | 265 |
android.util.Log.e("Save", ex.getMessage() ); |
266 | 266 |
} |
267 | 267 | |
268 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
269 | ||
270 |
public int openGlVersion() |
|
271 |
{ |
|
272 |
Context context = mView.getContext(); |
|
273 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
274 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
275 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
276 |
int major = glESversion >> 16; |
|
277 |
int minor = glESversion & 0xff; |
|
278 | ||
279 |
return 100*major + 10*minor; |
|
280 |
} |
|
281 | ||
282 | 268 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
283 | 269 | |
284 | 270 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/singlemesh/SingleMeshRenderer.java | ||
---|---|---|
379 | 379 |
android.util.Log.e("SingleMesh", ex.getMessage() ); |
380 | 380 |
} |
381 | 381 | |
382 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
383 | ||
384 |
public int openGlVersion() |
|
385 |
{ |
|
386 |
Context context = mView.getContext(); |
|
387 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
388 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
389 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
390 |
int major = glESversion >> 16; |
|
391 |
int minor = glESversion & 0xff; |
|
392 | ||
393 |
return 100*major + 10*minor; |
|
394 |
} |
|
395 | ||
396 | 382 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
397 | 383 | |
398 | 384 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/sink/SinkRenderer.java | ||
---|---|---|
152 | 152 |
android.util.Log.e("Sink", ex.getMessage() ); |
153 | 153 |
} |
154 | 154 | |
155 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
156 | ||
157 |
public int openGlVersion() |
|
158 |
{ |
|
159 |
Context context = mView.getContext(); |
|
160 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
161 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
162 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
163 |
int major = glESversion >> 16; |
|
164 |
int minor = glESversion & 0xff; |
|
165 | ||
166 |
return 100*major + 10*minor; |
|
167 |
} |
|
168 | ||
169 | 155 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
170 | 156 | |
171 | 157 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/starwars/StarWarsRenderer.java | ||
---|---|---|
441 | 441 |
android.util.Log.e("StarWars", ex.getMessage() ); |
442 | 442 |
} |
443 | 443 | |
444 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
445 | ||
446 |
public int openGlVersion() |
|
447 |
{ |
|
448 |
Context context = mView.getContext(); |
|
449 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
450 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
451 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
452 |
int major = glESversion >> 16; |
|
453 |
int minor = glESversion & 0xff; |
|
454 | ||
455 |
return 100*major + 10*minor; |
|
456 |
} |
|
457 | ||
458 | 444 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
459 | 445 | |
460 | 446 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/stencil/StencilRenderer.java | ||
---|---|---|
242 | 242 |
android.util.Log.e("Stencil", ex.getMessage() ); |
243 | 243 |
} |
244 | 244 | |
245 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
246 | ||
247 |
public int openGlVersion() |
|
248 |
{ |
|
249 |
Context context = mView.getContext(); |
|
250 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
251 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
252 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
253 |
int major = glESversion >> 16; |
|
254 |
int minor = glESversion & 0xff; |
|
255 | ||
256 |
return 100*major + 10*minor; |
|
257 |
} |
|
258 | ||
259 | 245 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
260 | 246 | |
261 | 247 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/surfaceview/RenderThread.java | ||
---|---|---|
294 | 294 |
android.util.Log.e("SurfaceView", ex.getMessage() ); |
295 | 295 |
} |
296 | 296 | |
297 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
298 | ||
299 |
public int openGlVersion() |
|
300 |
{ |
|
301 |
Context context = mView.getContext(); |
|
302 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
303 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
304 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
305 |
int major = glESversion >> 16; |
|
306 |
int minor = glESversion & 0xff; |
|
307 | ||
308 |
return 100*major + 10*minor; |
|
309 |
} |
|
310 | ||
311 | 297 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
312 | 298 | |
313 | 299 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/transparency/TransparencyRenderer.java | ||
---|---|---|
233 | 233 |
android.util.Log.e("Transparency", ex.getMessage() ); |
234 | 234 |
} |
235 | 235 | |
236 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
237 | ||
238 |
public int openGlVersion() |
|
239 |
{ |
|
240 |
Context context = mView.getContext(); |
|
241 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
242 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
243 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
244 |
int major = glESversion >> 16; |
|
245 |
int minor = glESversion & 0xff; |
|
246 | ||
247 |
return 100*major + 10*minor; |
|
248 |
} |
|
249 | ||
250 | 236 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
251 | 237 | |
252 | 238 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/triblur/TriblurRenderer.java | ||
---|---|---|
277 | 277 |
android.util.Log.e("Triblur", ex.getMessage() ); |
278 | 278 |
} |
279 | 279 | |
280 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
281 | ||
282 |
public int openGlVersion() |
|
283 |
{ |
|
284 |
Context context = mView.getContext(); |
|
285 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
286 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
287 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
288 |
int major = glESversion >> 16; |
|
289 |
int minor = glESversion & 0xff; |
|
290 | ||
291 |
return 100*major + 10*minor; |
|
292 |
} |
|
293 | ||
294 | 280 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
295 | 281 | |
296 | 282 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/examples/wind/WindRenderer.java | ||
---|---|---|
182 | 182 |
android.util.Log.e("Wind", ex.getMessage() ); |
183 | 183 |
} |
184 | 184 | |
185 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
186 | ||
187 |
public int openGlVersion() |
|
188 |
{ |
|
189 |
Context context = mView.getContext(); |
|
190 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
191 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
192 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
193 |
int major = glESversion >> 16; |
|
194 |
int minor = glESversion & 0xff; |
|
195 | ||
196 |
return 100*major + 10*minor; |
|
197 |
} |
|
198 | ||
199 | 185 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
200 | 186 | |
201 | 187 |
public InputStream localFile(int fileID) |
Also available in: Unified diff
Decouple (to a large degree) the OpenGL Library from Android.