Example #1
0
        /// <summary>
        /// Rendering logic implementation.
        /// </summary>
        /// <param name="skin">Skin to use.</param>
        internal virtual void DoRender(Skin.SkinBase skin)
        {
            // If this control has a different skin,
            // then so does its children.
            if (m_Skin != null)
            {
                skin = m_Skin;
            }

            Renderer.RendererBase render = skin.Renderer;

            if (render.CTT != null && ShouldCacheToTexture)
            {
                DoCacheRender(skin, this);
                return;
            }

            RenderRecursive(skin, Bounds);

            if (DrawDebugOutlines)
            {
                skin.DrawDebugOutlines(this);
            }
        }