Пример #1
0
        public static SpriteSheet1D LoadSpriteSheet1D([NotNull] GraphicsDevice graphics, [NotNull] Bitmap bitmap, [NotNull] ImageFormat format, int count, SpriteSheetOrientation orientation)
        {
            var texture = LoadTexture(graphics, bitmap, format);

            return(SpriteSheet1D.Wrap(texture, count, orientation));
        }
Пример #2
0
        public static SpriteSheet1D LoadSpriteSheet1D([NotNull] GraphicsDevice graphics, [NotNull] string filePath, int count, SpriteSheetOrientation orientation)
        {
            var texture = LoadTexture(graphics, filePath);

            return(SpriteSheet1D.Wrap(texture, count, orientation));
        }