Example #1
0
        public Quad CreateQuad(Effect effect)
        {
            Quad quad = Quads.New();

            quad.Effect = effect;
            Quads.Sort(Quad.QuadComparer);
            return(quad);
        }
Example #2
0
        public Quad CreateQuad(Effect effect, Texture2D texture)
        {
            Quad quad = Quads.New();

            quad.Effect = effect;
            quad.SetTexture(texture);
            Quads.Sort(Quad.QuadComparer);
            return(quad);
        }