/// <summary>
        /// Factory method for <see cref="IRenderer"/>s.
        /// </summary>
        /// <remarks>
        /// See the remarks for <see cref="RendererFactoryBase"/> regarding how
        /// these objects are actually allocated/managed internally.
        /// </remarks>
        public IRenderer GetRenderer()
        {
            if (_proxy == null)
            {
                _proxy = new RendererProxy(GetNewRenderer());
            }

            _proxy.Wrapper.IncrementReferenceCount();
            return(_proxy);
        }
示例#2
0
		/// <summary>
		/// Factory method for <see cref="IRenderer"/>s.
		/// </summary>
		/// <remarks>
		/// See the remarks for <see cref="RendererFactoryBase"/> regarding how
		/// these objects are actually allocated/managed internally.
		/// </remarks>
		public IRenderer GetRenderer()
		{
			if (_proxy == null)
				_proxy = new RendererProxy(GetNewRenderer());

			_proxy.Wrapper.IncrementReferenceCount();
			return _proxy;
		}