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