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