public void draw(org.mini2Dx.core.Graphics g, int cacheID, int offset, int length) { for (var i = offset; i < _caches[cacheID].operations.Count && i < offset + length; i++) { draw(g, _caches[cacheID].texture, _caches[cacheID].operations[i]); } }
public void draw(org.mini2Dx.core.Graphics g, string str, float x, float y, float targetWidth, int horizontalAlignment, bool wrap) { var graphics = (MonoGameGraphics)g; draw(graphics._spriteBatch, str, targetWidth, horizontalAlignment, wrap, new Vector2(x, y) + graphics._translation - graphics._rotationCenter, graphics._scale, new Microsoft.Xna.Framework.Color { R = (byte)(graphics._tint.R / 255.0f * _color.R), G = (byte)(graphics._tint.G / 255.0f * _color.G), B = (byte)(graphics._tint.B / 255.0f * _color.B), A = (byte)(graphics._tint.A / 255.0f * _color.A) }); }
public void draw(org.mini2Dx.core.Graphics g, string str, float x, float y, float targetWidth) { draw(g, str, x, y, targetWidth, Align.LEFT, true); }
public void draw(org.mini2Dx.core.Graphics g, string str, float x, float y) { _sharedFontGlyphLayout.setText(str); draw(g, str, x, y, _sharedFontGlyphLayout.getWidth()); _sharedFontGlyphLayout.reset(); }
private static void draw(org.mini2Dx.core.Graphics g, MonoGameTexture texture, SpriteCacheDrawingOperation op) { ((MonoGameGraphics)g).drawTexture(texture, op.dstX, op.dstY, op.srcX, op.srcY, op.srcWidth, op.srcHeight, op.scaleX, op.scaleY, op.originX, op.originY, op.rotation, op.flipX, op.flipY, op.color); }
public void draw(org.mini2Dx.core.Graphics g, int cacheID) { draw(g, cacheID, 0, _caches[cacheID].operations.Count); }
public void draw(org.mini2Dx.core.Graphics g) { endSpriteBatch(); g.drawTexture(_gameFontCache, _position.X, _position.Y); beginSpriteBatch(); }