public GLGpuProgram Create(ResourceManager parent, string name, ResourceHandle handle, string group, bool isManual, IManualResourceLoader loader, GpuProgramType type, string syntaxCode) { GLGpuProgram ret; if (type == GpuProgramType.Vertex) { ret = new VP30GpuProgram(parent, name, handle, group, isManual, loader); } else { ret = new FP30GpuProgram(parent, name, handle, group, isManual, loader); } ret.Type = type; ret.SyntaxCode = syntaxCode; return(ret); }
public GLGpuProgram Create( ResourceManager parent, string name, ResourceHandle handle, string group, bool isManual, IManualResourceLoader loader, GpuProgramType type, string syntaxCode ) { GLGpuProgram ret; if ( type == GpuProgramType.Vertex ) { ret = new VP30GpuProgram( parent, name, handle, group, isManual, loader ); } else { ret = new FP30GpuProgram( parent, name, handle, group, isManual, loader ); } ret.Type = type; ret.SyntaxCode = syntaxCode; return ret; }