Beispiel #1
0
        public static Texture[] AddTexture(string file, out int width, out int height)
        {
            if (sheetsLoaded)
            {
                throw new Exception($"Unable to add texture (file: {file}. Sheets are already loaded.");
            }

            var data = BitmapLoader.LoadTexture(file, out width, out height);

            return(new[] { addTexture(data, file, width, height) });
        }