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

CreateProgram() public method

Create a new, unloaded GpuProgram from a file of assembly.
Use this method in preference to the 'load' methods if you wish to define a GpuProgram, but not load it yet; useful for saving memory.
public CreateProgram ( string name, string group, string fileName, GpuProgramType type, string syntaxCode ) : Axiom.Graphics.GpuProgram
name string /// The name of the program. ///
group string
fileName string /// The file to load. ///
type GpuProgramType
syntaxCode string /// Name of the syntax to use for the program, i.e. vs_1_1, arbvp1, etc. ///
return Axiom.Graphics.GpuProgram
	    public virtual GpuProgram CreateProgram( string name, string group, string fileName, GpuProgramType type, string syntaxCode )
		{
			GpuProgram program = Create( name, group, type, syntaxCode );

			program.Type = type;
			program.SyntaxCode = syntaxCode;
			program.SourceFile = fileName;

			return program;
		}