Beispiel #1
0
        public void UnloadAsset()
        {
            //TODO: unset from any linked objects

            Media.ShaderList.Remove(this);
            Agk.DeleteShader(this.ResourceNumber);
        }
Beispiel #2
0
 public static void UnloadAllShaderAssets()
 {
     foreach (var i in Media.ShaderList)
     {
         //TODO: remove from objects?
         Agk.DeleteShader(i.ResourceNumber);
     }
     Media.ShaderList.Clear();
 }