语言

EffectContext.CreateWithCurrentGlContext 方法

定义

在当前 GL 上下文中创建上下文。

[Android.Runtime.Register("createWithCurrentGlContext", "()Landroid/media/effect/EffectContext;", "")]
public static Android.Media.Effect.EffectContext? CreateWithCurrentGlContext();
[<Android.Runtime.Register("createWithCurrentGlContext", "()Landroid/media/effect/EffectContext;", "")>]
static member CreateWithCurrentGlContext : unit -> Android.Media.Effect.EffectContext

返回

特性

注解

在当前 GL 上下文中创建上下文。

将 EffectContext 绑定到当前的 OpenGL 上下文。 对 EffectContext 的所有后续调用都必须在创建过程中处于活动状态的 GL 上下文中进行。 使用完上下文后,必须调用 #release()。 释放与此上下文关联的所有资源。

Java文档android.media.effect.EffectContext.createWithCurrentGlContext()。

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

适用于