Xamarin.android openTK透明纹理

Xamarin.android openTK透明纹理,xamarin.android,textures,transparency,opentk,Xamarin.android,Textures,Transparency,Opentk,我有一个问题,使我的纹理透明。我是OpentTK的新手,请有人帮帮我。我正在使用ES11。这是我加载纹理的代码 GL.BindTexture (All.Texture2D, tex_id); GL.TexParameterx (All.Texture2D, All.TextureMagFilter, (int)All.Linear); GL.TexParameterx (All.Texture2D, All.TextureMinFilter, (

我有一个问题,使我的纹理透明。我是OpentTK的新手,请有人帮帮我。我正在使用ES11。这是我加载纹理的代码

        GL.BindTexture (All.Texture2D, tex_id);

        GL.TexParameterx (All.Texture2D, All.TextureMagFilter, (int)All.Linear);
        GL.TexParameterx (All.Texture2D, All.TextureMinFilter, (int)All.Linear);
        GL.TexParameterx (All.Texture2D, All.TextureWrapS, (int)All.ClampToEdge);
        GL.TexParameterx (All.Texture2D, All.TextureWrapT, (int)All.ClampToEdge);

        Bitmap text = Bitmap.CreateBitmap(400, 200, Bitmap.Config.Argb8888);

        Canvas canvas = new Canvas(text);
        Paint p = new Paint {
            AntiAlias = true,
            Color = Color.Rgb(0x55, 0x55, 0xff)
        };


        p.SetXfermode (new PorterDuffXfermode (PorterDuff.Mode.Src));
        p.TextSize = 60;
        p.TextAlign = Paint.Align.Center;
        Paint.FontMetrics fm = p.GetFontMetrics ();
        canvas.DrawText ( string1, 200, 60, p);
        canvas.DrawText ( string2, 200, 130, p);


        Android.Opengl.GLUtils.TexImage2D ((int)All.Texture2D, 0, text, 0);

您是否调用了
GL.Enable(EnableCap.Blend)
并设置了正确的混合功能?这是一个很好的混合参考。是的,已启用混合:总账。启用(所有。混合);GL.BlendFunc(All.SrcAlpha,All.OneMinusSrcAlpha);但这没有帮助。我是否需要使用着色器,以及如何使用(我不确定如何在ES11中使用着色器)。