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