Exemple #1
0
        public void DrawString(
            SpriteFont spriteFont,
            StringBuilder text,
            Vector2 position,
            Color color,
            float rotation,
            Vector2 origin,
            Vector2 scale,
            SpriteEffects effect,
            float depth
            )
        {
            CheckValid(spriteFont, text);

            SpriteFont.CharacterSource source = new SpriteFont.CharacterSource(text);
            spriteFont.DrawInto(
                this,
                ref source,
                position,
                color,
                rotation,
                origin,
                scale,
                effect,
                depth
                );
        }
Exemple #2
0
        public void DrawString(SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float depth)
        {
            this.CheckValid(spriteFont, text);
            Vector2 scale1 = new Vector2(scale, scale);

            SpriteFont.CharacterSource text1 = new SpriteFont.CharacterSource(text);
            spriteFont.DrawInto(this, ref text1, position, color, rotation, origin, scale1, effects, depth);
        }
Exemple #3
0
        public void DrawString(SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color)
        {
            CheckValid(spriteFont, text);

            var source = new SpriteFont.CharacterSource(text);

            spriteFont.DrawInto(this, ref source, position, color, 0, Vector2.Zero, Vector2.One, SpriteEffects.None, 0f);
        }
Exemple #4
0
        public void DrawString(SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color)
        {
            if (spriteFont == null)
            {
                throw new ArgumentNullException("spriteFont");
            }

            spriteFont.DrawInto(
                this, text, position, color, 0, Vector2.Zero, Vector2.One, SpriteEffects.None, 0f);
        }
Exemple #5
0
        public void DrawString(
            SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color,
            float rotation, Vector2 origin, Vector2 scale, SpriteEffects effect, float depth)
        {
            if (spriteFont == null)
            {
                throw new ArgumentNullException("spriteFont");
            }

            spriteFont.DrawInto(this, text, position, color, rotation, origin, scale, effect, depth);
        }
Exemple #6
0
        public void DrawString(
            SpriteFont spriteFont, string text, Vector2 position, Color color,
            float rotation, Vector2 origin, float scale, SpriteEffects effects, float depth)
        {
            CheckValid(spriteFont, text);

            var scaleVec = new Vector2(scale, scale);
            var source   = new SpriteFont.CharacterSource(text);

            spriteFont.DrawInto(this, ref source, position, color, rotation, origin, scaleVec, effects, depth);
        }
Exemple #7
0
        public void DrawString(
            SpriteFont spriteFont, string text, Vector2 position, Color color,
            float rotation, Vector2 origin, float scale, SpriteEffects effects, float depth)
        {
            if (spriteFont == null)
            {
                throw new ArgumentNullException("spriteFont");
            }

            var scaleVec = new Vector2(scale, scale);

            spriteFont.DrawInto(this, text, position, color, rotation, origin, scaleVec, effects, depth);
        }
Exemple #8
0
 public void DrawString(SpriteFont spriteFont, string text, Vector2 position, Color color)
 {
     this.CheckValid(spriteFont, text);
     SpriteFont.CharacterSource text1 = new SpriteFont.CharacterSource(text);
     spriteFont.DrawInto(this, ref text1, position, color, 0.0f, Vector2.Zero, Vector2.One, SpriteEffects.None, 0.0f);
 }
Exemple #9
0
		public void DrawString (
			SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color,
			float rotation, Vector2 origin, Vector2 scale, SpriteEffects effect, float depth)
		{
			if (spriteFont == null)
				throw new ArgumentNullException ("spriteFont");

			spriteFont.DrawInto (this, text, position, color, rotation, origin, scale, effect, depth);
		}
Exemple #10
0
		public void DrawString (
			SpriteFont spriteFont, string text, Vector2 position, Color color,
			float rotation, Vector2 origin, float scale, SpriteEffects effects, float depth)
		{
			if (spriteFont == null)
				throw new ArgumentNullException ("spriteFont");

			var scaleVec = new Vector2 (scale, scale);
			spriteFont.DrawInto (this, text, position, color, rotation, origin, scaleVec, effects, depth);
		}
Exemple #11
0
		public void DrawString (SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color)
		{
			if (spriteFont == null)
				throw new ArgumentNullException ("spriteFont");

			spriteFont.DrawInto (
				this, text, position, color, 0, Vector2.Zero, Vector2.One, SpriteEffects.None, 0f);
		}
Exemple #12
0
 public void DrawString(SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effect, float depth)
 {
   this.CheckValid(spriteFont, text);
   SpriteFont.CharacterSource text1 = new SpriteFont.CharacterSource(text);
   spriteFont.DrawInto(this, ref text1, position, color, rotation, origin, scale, effect, depth);
 }
Exemple #13
0
 public void DrawString(SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color)
 {
   this.CheckValid(spriteFont, text);
   SpriteFont.CharacterSource text1 = new SpriteFont.CharacterSource(text);
   spriteFont.DrawInto(this, ref text1, position, color, 0.0f, Vector2.Zero, Vector2.One, SpriteEffects.None, 0.0f);
 }
Exemple #14
0
		public void DrawString (
			SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color,
			float rotation, Vector2 origin, float scale, SpriteEffects effects, float depth)
		{
            CheckValid(spriteFont, text);

			var scaleVec = new Vector2 (scale, scale);
            var source = new SpriteFont.CharacterSource(text);
            spriteFont.DrawInto(this, ref source, position, color, rotation, origin, scaleVec, effects, depth);
		}
Exemple #15
0
		public void DrawString (SpriteFont spriteFont, string text, Vector2 position, Color color)
		{
            CheckValid(spriteFont, text);

            var source = new SpriteFont.CharacterSource(text);
			spriteFont.DrawInto (
                this, ref source, position, color, 0, Vector2.Zero, Vector2.One, SpriteEffects.None, 0f);
		}
Exemple #16
0
        /// <summary>
        /// Submit a text string of sprites for drawing in the current batch.
        /// </summary>
        /// <param name="spriteFont">A font.</param>
        /// <param name="text">The text which will be drawn.</param>
        /// <param name="position">The drawing location on screen.</param>
        /// <param name="color">A color mask.</param>
        /// <param name="rotation">A rotation of this string.</param>
        /// <param name="origin">Center of the rotation. 0,0 by default.</param>
        /// <param name="scale">A scaling of this string.</param>
        /// <param name="effects">Modificators for drawing. Can be combined.</param>
        /// <param name="layerDepth">A depth of the layer of this string.</param>
		public void DrawString (
			SpriteFont spriteFont, string text, Vector2 position, Color color,
            float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
		{
            CheckValid(spriteFont, text);

            var source = new SpriteFont.CharacterSource(text);
            spriteFont.DrawInto(this, ref source, position, color, rotation, origin, scale, effects, layerDepth);
		}