コード例 #1
0
        public DirectiveRenderer AddViewport(string name, Viewport2d viewport)
        {
            if (this._viewports.ContainsKey(name))
            {
                throw new InvalidOperationException($"A viewport has already been added with name '{name}'!");
            }

            this._viewports.Add(name, viewport);
            return(this);
        }
コード例 #2
0
 public virtual void OnAfterRenderView(Viewport2d viewport)
 {
 }
コード例 #3
0
 public virtual bool OnBeforeRenderView(Viewport2d viewport)
 {
     return(true);
 }