When does GLSurfaceView begin to work?

45 views Asked by At

I have a class GLView extends GLSurfaceView.
It can run when i defined it in layout.xml or used it as the contentView. onSurfaceCreated(),onSurfaceChanged()and onDrawFrame() were all called.
But if i only wirte GLView view = new GLView(context);view.setRenderer(renderer);, is it possible to run?
And i don't want it to be the contentView, i just need it to run onDrawFrame()again and again.

0

There are 0 answers