public void Register(SpriteBatchType type, Vector2 position, Vector2i tile, bool flip_u) { Register( type, position, tile, flip_u, Vector2.One); }
public void Register(SpriteBatchType type, Vector2 position, Vector2i tile, bool flip_u, Vector2 scale) { if(SpriteItemLists[(int)type]==null) { SpriteItemLists[(int)type] = new List<SpriteItem>(); } var list = SpriteItemLists[(int)type]; var item = new SpriteItem(); item.position = position; item.tile = tile; item.flip_u = flip_u; item.scale = scale; list.Add(item); }