Skip to content

Instantly share code, notes, and snippets.

@framundo
Created April 14, 2016 13:21
Show Gist options
  • Select an option

  • Save framundo/da061dcb9fbe10e763fd7358dc726438 to your computer and use it in GitHub Desktop.

Select an option

Save framundo/da061dcb9fbe10e763fd7358dc726438 to your computer and use it in GitHub Desktop.
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