Revision 625c67de
Added by Leszek Koltunski about 1 year ago
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) |
Also available in: Unified diff
Decouple (to a large degree) the OpenGL Library from Android.