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/multiblur/MultiblurRenderer.java
270 270
      android.util.Log.e("Multiblur", ex.getMessage() );
271 271
      }
272 272

  
273
///////////////////////////////////////////////////////////////////////////////////////////////////
274

  
275
    public int openGlVersion()
276
      {
277
      Context context = mView.getContext();
278
      final ActivityManager activityManager     = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
279
      final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo();
280
      int glESversion = configurationInfo.reqGlEsVersion;
281
      int major = glESversion >> 16;
282
      int minor = glESversion & 0xff;
283

  
284
      return 100*major + 10*minor;
285
      }
286

  
287 273
///////////////////////////////////////////////////////////////////////////////////////////////////
288 274

  
289 275
    public InputStream localFile(int fileID)

Also available in: Unified diff