protected override Resource _create( string name, ResourceHandle handle, string group, bool isManual, IManualResourceLoader loader, NameValuePairList createParams )
{
if ( !createParams.ContainsKey( "type" ) )
{
throw new Exception( "You must supply a 'type' parameter." );
}
if ( createParams[ "type" ] == "vertex_program" )
{
return new D3DVertexProgram( this, name, handle, group, isManual, loader, device );
}
else
{
return new D3DFragmentProgram( this, name, handle, group, isManual, loader, device );
}
}