public override void DrawString(Happiness.SpriteFont font, string text, Happiness.Vector2 position, Happiness.Color color) { SpriteFont_XNA f = (SpriteFont_XNA)font; _sb.DrawString(f.XNAFont, text, HappinessV2ToXNAV2(position), HappinessColorToXNAColor(color), 0, Vector2.Zero, FontScale.Y, SpriteEffects.None, 0); }
public static Vector2 HappinessV2ToXNAV2(Happiness.Vector2 v) { return(new Vector2(v.X, v.Y)); }
public override void Draw(Happiness.Texture2D texture, Happiness.Rectangle destinationRectangle, Happiness.Rectangle?sourceRectangle, Happiness.Color color, float rotation, Happiness.Vector2 origin, Happiness.SpriteEffects effects, float layerDepth) { Texture2D_XNA t = (Texture2D_XNA)texture; Rectangle? srcRect = (sourceRectangle.HasValue ? HappinessRectToXNARect(sourceRectangle.Value) : (Rectangle?)null); _sb.Draw(t.XNATexture, HappinessRectToXNARect(destinationRectangle), srcRect, HappinessColorToXNAColor(color), rotation, HappinessV2ToXNAV2(origin), (SpriteEffects)effects, layerDepth); }