Project

General

Profile

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

examples / src / main / java / org / distortedandroid / examples / girl / GirlSurfaceView.java @ 427ab7bf

1 427ab7bf Leszek Koltunski
2
package org.distortedandroid.examples.girl;
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 GirlSurfaceView extends GLSurfaceView 
12
{
13
///////////////////////////////////////////////////////////////////////////////////////////////////
14
   
15
  public GirlSurfaceView(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 GirlRenderer(this));
27
      }
28
}