Пример #1
0
        /// <summary>Always draws even if properties haven't changed. Typically responds with a RenderTexture
        /// but it depends on your tree (i.e. if your tree is just a constant, then you'll actually get a Texture2D back).</summary>
        public Texture ForceDraw(DrawInfo settings)
        {
            // Draw the root now (which may also trigger the allocate):
            Root_.DrawGPU(settings, this);

            // Pull the resulting texture from root and return it:
            return(Root_.DrawStore.Texture);
        }