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.
When does GLSurfaceView begin to work?
55 views Asked by KiBa1215 At
0