Revision 525699f4
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/quaternion/QuaternionSurfaceView.java | ||
---|---|---|
27 | 27 |
|
28 | 28 |
class QuaternionSurfaceView extends GLSurfaceView |
29 | 29 |
{ |
30 |
public QuaternionSurfaceView(Context c)
|
|
30 |
public QuaternionSurfaceView(Context context)
|
|
31 | 31 |
{ |
32 |
super(c); |
|
33 |
|
|
34 |
if(!isInEditMode()) |
|
35 |
{ |
|
36 |
setEGLContextClientVersion(2); |
|
37 |
|
|
38 |
if( Build.FINGERPRINT.startsWith("generic") ) |
|
39 |
{ |
|
40 |
setEGLConfigChooser(8, 8, 8, 8, 16, 0); |
|
41 |
} |
|
42 |
|
|
43 |
setRenderer(new QuaternionRenderer(this)); |
|
44 |
} |
|
32 |
super(context); |
|
33 |
setEGLContextClientVersion(2); |
|
34 |
setRenderer(new QuaternionRenderer(this)); |
|
45 | 35 |
} |
46 | 36 |
} |
47 | 37 |
|
Also available in: Unified diff
Simplify SurfaceViews