Exemplo n.º 1
0
        private int getWrapMode(TextureWrap wrap)
        {
            switch (wrap)
            {
            case TextureWrap.Clamp: return((int)TextureWrapMode.ClampToEdge);

            case TextureWrap.MirroredRepeat: return((int)TextureWrapMode.MirroredRepeat);

            case TextureWrap.Repeat: return((int)TextureWrapMode.Repeat);

            default: throw new NotSupportedException(wrap.ToString());
            }
        }