C# Class KEngine.MaterialLoader

加载材质,通过CSerializeMaterial
Inheritance: AbstractResourceLoader
Afficher le fichier Open project: mr-kelly/KEngine

Méthodes publiques

Méthode Description
Load ( string path, CCMaterialLoaderDelegate callback = null ) : MaterialLoader

Méthodes protégées

Méthode Description
DoDispose ( ) : void
Init ( string url ) : void
OnFinish ( object resultObj ) : void

Private Methods

Méthode Description
CoGenerateMaterial ( string matPath, KSerializeMaterial sMat ) : IEnumerator
CoLoadSerializeMaterial ( ) : IEnumerator
ParseMaterialStr ( string materialTextureStr, Vector2 &tiling, Vector2 &offset ) : string
_SetMatColor ( Material mat, string colorPropName, string _colorStr ) : void
_SetMatRange ( Material mat, string propName, string propValue ) : void
_SetMatTex ( Material mat, string matPropName, Texture tex, Vector2 tiling, Vector2 offset ) : void
_SetMatVector ( Material mat, string propName, string propValue ) : void

Method Details

DoDispose() protected méthode

protected DoDispose ( ) : void
Résultat void

Init() protected méthode

protected Init ( string url ) : void
url string
Résultat void

Load() public static méthode

public static Load ( string path, CCMaterialLoaderDelegate callback = null ) : MaterialLoader
path string
callback CCMaterialLoaderDelegate
Résultat MaterialLoader

OnFinish() protected méthode

protected OnFinish ( object resultObj ) : void
resultObj object
Résultat void