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/blur/BlurRenderer.java
188 188
     android.util.Log.e("Blur", ex.getMessage() );
189 189
     }
190 190

  
191
///////////////////////////////////////////////////////////////////////////////////////////////////
192

  
193
   public int openGlVersion()
194
     {
195
     Context context = mView.getContext();
196
     final ActivityManager activityManager     = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
197
     final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo();
198
     int glESversion = configurationInfo.reqGlEsVersion;
199
     int major = glESversion >> 16;
200
     int minor = glESversion & 0xff;
201

  
202
     return 100*major + 10*minor;
203
     }
204

  
205 191
///////////////////////////////////////////////////////////////////////////////////////////////////
206 192

  
207 193
   public InputStream localFile(int fileID)

Also available in: Unified diff