Created
April 14, 2016 13:21
-
-
Save framundo/da061dcb9fbe10e763fd7358dc726438 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class EasyGLView extends GLSurfaceView { | |
| public EasyGLView(Context context) { | |
| super(context); | |
| init(); | |
| } | |
| public EasyGLView(Context context, AttributeSet attrs) { | |
| super(context, attrs); | |
| init(); | |
| } | |
| private void init() { | |
| setEGLConfigChooser(8, 8, 8, 8, 16, 0); | |
| setEGLContextClientVersion(2); | |
| GLHelper.setContext(getContext().getApplicationContext()); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment