Exemple #1
0
        public void Set(IUniformValue source)
        {
            UniformValueTexture other = source as UniformValueTexture;

            if (other == null)
            {
                return;
            }
            Texture = other.Texture;;
        }
Exemple #2
0
        public override bool Equals(object obj)
        {
            UniformValueTexture o = obj as UniformValueTexture;

            if (o == null)
            {
                return(false);
            }
            return(Texture == o.Texture);
        }
Exemple #3
0
        public int CompareTo(IUniformValue other)
        {
            UniformValueTexture oTex = other as UniformValueTexture;

            if (oTex != null)
            {
                return(Texture.ID.CompareTo(oTex.Texture.ID));
            }
            UniformValueSampler oSampler = other as UniformValueSampler;

            if (oSampler != null)
            {
                return(Texture.ID.CompareTo(oSampler.Sampler.Texture.ID));
            }
            return(-1);
        }