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