예제 #1
0
        public void LoadPointTexture()
        {
            Texture2D pointTexture = new Texture2D(_graphics, 3, 3);

            pointTexture.SetData(new[]
            {
                Color.White *0, Color.Red, Color.White *0,
                Color.Red, Color.Red, Color.Red,
                Color.White *0, Color.Red, Color.White *0
            });

            _shapeDrawer.AddContent("PointTexture", pointTexture);
        }
예제 #2
0
 public void LoadArial12()
 {
     _textSpriteDrawer.AddContent("Arial12", _contentManager.Load <SpriteFont>("FONTS/Arial12"));
 }
예제 #3
0
        public void LoadParticle(string particle)
        {
            Texture2D texture2D = _contentManager.Load <Texture2D>("Sprites/Particles/" + particle);

            _spriteDrawer.AddContent(particle, texture2D);
        }