public static LTexture OpenTexture(string fileName, string resName) { try { LImage image = OpenImage(fileName, resName); image.SetAutoDispose(true); return(image.GetTexture()); } catch (Exception) { throw new Exception("File not found. ( " + resName + " )"); } }