Project

General

Profile

Download (746 Bytes) Statistics
| Branch: | Revision:

examples / src / main / java / org / distorted / examples / save / SaveSurfaceView.java @ a2cb31e9

1

    
2
package org.distorted.examples.save;
3

    
4
import android.content.Context;
5
import android.opengl.GLSurfaceView;
6
import android.os.Build;
7
import android.util.AttributeSet;
8

    
9
///////////////////////////////////////////////////////////////////////////////////////////////////
10

    
11
class SaveSurfaceView extends GLSurfaceView 
12
{
13
///////////////////////////////////////////////////////////////////////////////////////////////////
14
   
15
  public SaveSurfaceView(Context c, AttributeSet attrs)
16
      {
17
      super(c, attrs);
18
     
19
      setEGLContextClientVersion(2);
20
        
21
      if( Build.FINGERPRINT.startsWith("generic") )
22
        { 
23
        setEGLConfigChooser(8, 8, 8, 8, 16, 0);   
24
        }
25
        
26
      setRenderer(new SaveRenderer(this));
27
      }
28
}
29

    
(3-3/3)