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); }
public void LoadArial12() { _textSpriteDrawer.AddContent("Arial12", _contentManager.Load <SpriteFont>("FONTS/Arial12")); }
public void LoadParticle(string particle) { Texture2D texture2D = _contentManager.Load <Texture2D>("Sprites/Particles/" + particle); _spriteDrawer.AddContent(particle, texture2D); }