Ejemplo n.º 1
0
        public static TextureCollection FromConfig(ContentManager content, GraphicsDevice device, string name)
        {
            TextureCollection result = new TextureCollection(content, device);

            result.LoadFromConfig(name);
            return(result);
        }
Ejemplo n.º 2
0
        public override void Initialize()
        {
            Program.LogAgmnt("SpriteRenderer", "initializing renderer", "Gphx");
            InitSettings();

            batch    = new SpriteBatch(graphics.GraphicsDevice);
            textures = TextureCollection.FromConfig(Game.Content, graphics.GraphicsDevice, "Textures");

            base.Initialize();
        }