Revision 625c67de
Added by Leszek Koltunski about 1 year ago
src/main/java/org/distorted/examples/effectqueue/EffectQueueRenderer.java | ||
---|---|---|
166 | 166 |
android.util.Log.e("EffectQueue", ex.getMessage() ); |
167 | 167 |
} |
168 | 168 |
|
169 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
170 |
|
|
171 |
public int openGlVersion() |
|
172 |
{ |
|
173 |
Context context = mView.getContext(); |
|
174 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
175 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
176 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
177 |
int major = glESversion >> 16; |
|
178 |
int minor = glESversion & 0xff; |
|
179 |
|
|
180 |
return 100*major + 10*minor; |
|
181 |
} |
|
182 |
|
|
183 | 169 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
184 | 170 |
|
185 | 171 |
public InputStream localFile(int fileID) |
Also available in: Unified diff
Decouple (to a large degree) the OpenGL Library from Android.