materialsystem/cmaterialsystem.cpp
void *CMaterialSystem::QueryInterface( const char *pInterfaceName )
{
	// Returns various interfaces supported by the shader API dll
	void *pInterface = QueryShaderAPI( pInterfaceName );
	if ( pInterface )
		return pInterface;

	CreateInterfaceFn factory = Sys_GetFactoryThis();	// This silly construction is necessary
	return factory( pInterfaceName, NULL );				// to prevent the LTCG compiler from crashing.
}
//-----------------------------------------------------------------------------
// Method to get at different interfaces supported by the material system
//-----------------------------------------------------------------------------
Method to get at different interfaces supported by the material system
Method to get at different interfaces supported by the material system
void *CMaterialSystem::QueryInterface( const char *pInterfaceName )
{
	void *pInterface = QueryShaderAPI( pInterfaceName );
	if ( pInterface )
		return pInterface;
	CreateInterfaceFn factory = Sys_GetFactoryThis();	
	return factory( pInterfaceName, NULL );				
}
void * CMaterialSystem :: QueryInterface ( const char * pInterfaceName ) { void * pInterface = QueryShaderAPI ( pInterfaceName ) ; if ( pInterface ) return pInterface ; CreateInterfaceFn factory = Sys_GetFactoryThis ( ) ; return factory ( pInterfaceName , NULL ) ; }
Method to get at different interfaces supported by the material system
Method to get at different interfaces supported by the material system
// Returns various interfaces supported by the shader API dll // This silly construction is necessary // to prevent the LTCG compiler from crashing.