Axiom.Graphics.GpuProgramManager.GpuProgramManager C# (CSharp) Method

GpuProgramManager() protected method

Internal constructor. This class cannot be instantiated externally.
Protected internal because this singleton will actually hold the instance of a subclass created by a render system plugin.
protected GpuProgramManager ( ) : System.Collections.Generic
return System.Collections.Generic
		protected internal GpuProgramManager()
			: base()
		{
			if ( _instance == null )
            {
                _instance = this;

				// Loading order
				LoadingOrder = 50.0f;
				// Resource type
				ResourceType = "GpuProgram";
			}
			else
				throw new AxiomException( "Cannot create another instance of {0}. Use Instance property instead", this.GetType().Name );

			// subclasses should register with resource group manager
		}