Project

General

Profile

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

examples / src / main / java / org / distorted / examples / girl / GirlSurfaceView.java @ a8c3ada7

1

    
2
package org.distorted.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
}
29

    
(3-3/3)