ICubismMaskTextureCommandSource.cs 858 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * Copyright(c) Live2D Inc. All rights reserved.
  3. *
  4. * Use of this source code is governed by the Live2D Open Software license
  5. * that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html.
  6. */
  7. namespace Live2D.Cubism.Rendering.Masking
  8. {
  9. /// <summary>
  10. /// Common interface for mask draw sources.
  11. /// </summary>
  12. public interface ICubismMaskTextureCommandSource : ICubismMaskCommandSource
  13. {
  14. /// <summary>
  15. /// Queries the number of tiles needed by the source.
  16. /// </summary>
  17. /// <returns>The necessary number of tiles needed.</returns>
  18. int GetNecessaryTileCount();
  19. /// <summary>
  20. /// Assigns the tiles.
  21. /// </summary>
  22. /// <param name="value">Tiles to assign.</param>
  23. void SetTiles(CubismMaskTile[] value);
  24. }
  25. }