materialsystem/cmaterialsystem.cpp
CreateInterfaceFn CMaterialSystem::CreateShaderAPI( char const* pShaderDLL )
{
	if ( !pShaderDLL )
		return 0;

	// Clean up the old shader
	DestroyShaderAPI();

	// Load the new shader
	m_ShaderHInst = Sys_LoadModule( pShaderDLL );

	// Error loading the shader
	if ( !m_ShaderHInst )
		return 0;

	// Get our class factory methods...
	return Sys_GetFactory( m_ShaderHInst );
}
//-----------------------------------------------------------------------------
// Creates/destroys the shader implementation for the selected API
//-----------------------------------------------------------------------------
Creates/destroys the shader implementation for the selected API
Creates / destroys the shader implementation for the selected API
CreateInterfaceFn CMaterialSystem::CreateShaderAPI( char const* pShaderDLL )
{
	if ( !pShaderDLL )
		return 0;
	DestroyShaderAPI();
	m_ShaderHInst = Sys_LoadModule( pShaderDLL );
	if ( !m_ShaderHInst )
		return 0;
	return Sys_GetFactory( m_ShaderHInst );
}
CreateInterfaceFn CMaterialSystem :: CreateShaderAPI ( char const * pShaderDLL ) { if ( ! pShaderDLL ) return 0 ; DestroyShaderAPI ( ) ; m_ShaderHInst = Sys_LoadModule ( pShaderDLL ) ; if ( ! m_ShaderHInst ) return 0 ; return Sys_GetFactory ( m_ShaderHInst ) ; }
Creates/destroys the shader implementation for the selected API
Creates / destroys the shader implementation for the selected API
// Clean up the old shader // Load the new shader // Error loading the shader // Get our class factory methods...