Project

General

Profile

« Previous | Next » 

Revision 625c67de

Added by Leszek Koltunski about 1 year ago

Decouple (to a large degree) the OpenGL Library from Android.

View differences:

src/main/java/org/distorted/examples/differentbitmaps/DifferentBitmapsRenderer.java
207 207
     android.util.Log.e("DifferentBitmaps", ex.getMessage() );
208 208
     }
209 209

  
210
///////////////////////////////////////////////////////////////////////////////////////////////////
211

  
212
   public int openGlVersion()
213
     {
214
     Context context = mView.getContext();
215
     final ActivityManager activityManager     = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
216
     final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo();
217
     int glESversion = configurationInfo.reqGlEsVersion;
218
     int major = glESversion >> 16;
219
     int minor = glESversion & 0xff;
220

  
221
     return 100*major + 10*minor;
222
     }
223

  
224 210
///////////////////////////////////////////////////////////////////////////////////////////////////
225 211

  
226 212
   public InputStream localFile(int fileID)

Also available in: Unified diff