private static IEnumerable <ITextureParameter> GetDefaultTextureParameters()
        {
            yield return(TextureParameter.Create(TextureParameterName.TextureMagFilter, TextureMagFilter.Linear));

            yield return(TextureParameter.Create(TextureParameterName.TextureMinFilter, TextureMinFilter.Linear));

            yield return(TextureParameter.Create(TextureParameterName.TextureWrapS, TextureWrapMode.ClampToEdge));

            yield return(TextureParameter.Create(TextureParameterName.TextureWrapT, TextureWrapMode.ClampToEdge));
        }
Beispiel #2
0
        public static IEnumerable <ITextureParameter> Repeat(this IEnumerable <ITextureParameter> ps)
        {
            foreach (var p in ps)
            {
                yield return(p);
            }

            yield return(TextureParameter.Create(TextureParameterName.TextureWrapS, TextureWrapMode.Repeat));

            yield return(TextureParameter.Create(TextureParameterName.TextureWrapT, TextureWrapMode.Repeat));
        }
Beispiel #3
0
        public static IEnumerable <ITextureParameter> FilterMipMaps(this IEnumerable <ITextureParameter> ps)
        {
            foreach (var p in ps)
            {
                yield return(p);
            }

            yield return(TextureParameter.Create(TextureParameterName.TextureMagFilter, TextureMagFilter.Linear));

            yield return(TextureParameter.Create(TextureParameterName.TextureMinFilter, TextureMinFilter.LinearMipmapLinear));
        }
Beispiel #4
0
        public static IEnumerable <ITextureParameter> ClampToBorder(this IEnumerable <ITextureParameter> ps)
        {
            foreach (var p in ps)
            {
                yield return(p);
            }

            yield return(TextureParameter.Create(TextureParameterName.TextureWrapS, TextureWrapMode.ClampToBorder));

            yield return(TextureParameter.Create(TextureParameterName.TextureWrapT, TextureWrapMode.ClampToBorder));
        }
Beispiel #5
0
        public static IEnumerable <ITextureParameter> FilterNearest(this IEnumerable <ITextureParameter> ps)
        {
            foreach (var p in ps)
            {
                yield return(p);
            }

            yield return(TextureParameter.Create(TextureParameterName.TextureMagFilter, TextureMagFilter.Nearest));

            yield return(TextureParameter.Create(TextureParameterName.TextureMinFilter, TextureMinFilter.Nearest));
        }