Revision 625c67de
Added by Leszek Koltunski about 1 year ago
src/main/java/org/distorted/examples/bean/BeanRenderer.java | ||
---|---|---|
179 | 179 |
android.util.Log.e("Bean", ex.getMessage() ); |
180 | 180 |
} |
181 | 181 |
|
182 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
183 |
|
|
184 |
public int openGlVersion() |
|
185 |
{ |
|
186 |
Context context = mView.getContext(); |
|
187 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
188 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
189 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
190 |
int major = glESversion >> 16; |
|
191 |
int minor = glESversion & 0xff; |
|
192 |
|
|
193 |
return 100*major + 10*minor; |
|
194 |
} |
|
195 |
|
|
196 | 182 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
197 | 183 |
|
198 | 184 |
public InputStream localFile(int fileID) |
Also available in: Unified diff
Decouple (to a large degree) the OpenGL Library from Android.