语言

GLSurfaceView.SetEGLContextFactory(GLSurfaceView+IEGLContextFactory) 方法

定义

安装自定义 EGLContextFactory。

[Android.Runtime.Register("setEGLContextFactory", "(Landroid/opengl/GLSurfaceView$EGLContextFactory;)V", "GetSetEGLContextFactory_Landroid_opengl_GLSurfaceView_EGLContextFactory_Handler")]
public virtual void SetEGLContextFactory(Android.Opengl.GLSurfaceView.IEGLContextFactory? factory);
[<Android.Runtime.Register("setEGLContextFactory", "(Landroid/opengl/GLSurfaceView$EGLContextFactory;)V", "GetSetEGLContextFactory_Landroid_opengl_GLSurfaceView_EGLContextFactory_Handler")>]
abstract member SetEGLContextFactory : Android.Opengl.GLSurfaceView.IEGLContextFactory -> unit
override this.SetEGLContextFactory : Android.Opengl.GLSurfaceView.IEGLContextFactory -> unit

参数

factory
GLSurfaceView.IEGLContextFactory

用于创建和释放视图的 EGL 呈现上下文的工厂。

特性

注解

Java文档android.opengl.GLSurfaceView.setEGLContextFactory(android.opengl.EGLContextFactory)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于