public static void Draw(this SpriteBatch batch, Texture2D texture, IReferenceList <BatchedSprite> sprites, int offset, int count) { for (int i = offset; i < count; i++) { batch.DrawRef(texture, ref sprites.GetReferenceAt(i)); } }
public static void DrawString( this SpriteBatch batch, IReferenceList <GlyphBatchedSprite> sprites, int offset, int count) { for (int i = offset; i < count; i++) { ref GlyphBatchedSprite s = ref sprites.GetReferenceAt(i); if (s.Visible) { batch.DrawRef(s.Texture, ref s.Sprite); } }