public bool LoadAsset(string path, string name) { if (assets.ContainsKey(name)) { return(false); } IntPtr tex = Engine.LoadTexture(path); if (tex == IntPtr.Zero) { Console.WriteLine("Failed to load asset: {0}", path); return(false); } assets.Add(name, tex); return(true); }