分类: C/C++
2012-12-13 16:39:08
Second, create a subclass of GLSurfaceView like this:
public class CustomView extends GLSurfaceView { final CustomRenderer renderer; CustomView(Context context) { super(context); setEGLContextClientVersion(2); // This is the important line renderer = new CustomRenderer(); setRenderer(renderer); } }