public void TexParameter2d(gl.TextureParameterName pname, int param)
        {
            //if (CurrentBoundTexture == null)
            //  return;

            //TextureWrapper tw = TextureWrapperForTexture(CurrentBoundTexture);
            //if (pname == TextureParameterName.TextureMinFilter)
            //  tw.MinFilter = (TextureMinFilter)param;
            //if (pname == TextureParameterName.TextureMagFilter)
            //  tw.MagFilter = (TextureMagFilter)param;
        }
Beispiel #2
0
        public void TexParameter2d(Texture2d tex, gl.TextureParameterName pname, int param)
        {
            var tw = tex.Opaque as TextureWrapper;

            if (pname == gl.TextureParameterName.TextureMinFilter)
            {
                tw.MinFilter = (param == (int)gl.TextureMinFilter.Linear) ? TextureFilter.Linear : TextureFilter.Point;
            }
            if (pname == gl.TextureParameterName.TextureMagFilter)
            {
                tw.MagFilter = (param == (int)gl.TextureMagFilter.Linear) ? TextureFilter.Linear : TextureFilter.Point;
            }
        }