Exemple #1
0
        protected override void Draw()
        {
            if (TextureAtlas.TotalQuads == 0)
            {
                return;
            }

            Window.DrawManager.BlendFunc(BlendFunc);

            TextureAtlas.DrawQuads();
        }
Exemple #2
0
        protected override void Draw()
        {
            // Optimization: Fast Dispatch
            if (TextureAtlas.TotalQuads == 0)
            {
                return;
            }

            Window.DrawManager.BlendFunc(BlendFunc);

            TextureAtlas.DrawQuads();
        }
Exemple #3
0
        protected override void Draw()
        {
            // Optimization: Fast Dispatch
            if (TextureAtlas == null || TextureAtlas.TotalQuads == 0)
            {
                return;
            }

            // Loop through each of our children nodes that may have actions attached.
            foreach (CCSprite child in Children)
            {
                if (child.Tag >= 0)
                {
                    child.UpdateLocalTransformedSpriteTextureQuads();
                }
            }

            Window.DrawManager.BlendFunc(BlendFunc);
            TextureAtlas.DrawQuads();
        }