public override void Draw(Texture2D texture, Rectangle destinationRectangle, Rectangle? sourceRectangle, Color color, float rotation, Vector2 origin, SpriteEffects effects, float layerDepth) { #if DEBUG IncRenderSpriteCount(); #endif internalBatch.Draw(texture, destinationRectangle.TranslateTruncated(offset), sourceRectangle, color, rotation, origin, effects, layerDepth); }
public override void Draw(TextureRegion2D textureRegion, Rectangle destinationRectangle, Color color) { #if DEBUG IncRenderSpriteCount(); #endif internalBatch.Draw(textureRegion.Texture, destinationRectangle.TranslateTruncated(offset), textureRegion.Bounds, color); }