IMatrixChainEffect.cs 1.1 KB

123456789101112131415161718192021222324252627282930
  1. using Microsoft.Xna.Framework;
  2. using Microsoft.Xna.Framework.Graphics;
  3. namespace MonoGame.Extended.Graphics
  4. {
  5. /// <summary>
  6. /// Defines an <see cref="Effect" /> that uses the standard chain of matrix transformations to represent a 3D object on
  7. /// a 2D monitor.
  8. /// </summary>
  9. public interface IMatrixChainEffect : IEffectMatrices
  10. {
  11. /// <summary>
  12. /// Sets the model-to-world <see cref="Matrix" />.
  13. /// </summary>
  14. /// <param name="world">The model-to-world <see cref="Matrix" />.</param>
  15. void SetWorld(ref Matrix world);
  16. /// <summary>
  17. /// Sets the world-to-view <see cref="Matrix" />.
  18. /// </summary>
  19. /// <param name="view">The world-to-view <see cref="Matrix" />.</param>
  20. void SetView(ref Matrix view);
  21. /// <summary>
  22. /// Sets the view-to-projection <see cref="Matrix" />.
  23. /// </summary>
  24. /// <param name="projection">The view-to-projection <see cref="Matrix" />.</param>
  25. void SetProjection(ref Matrix projection);
  26. }
  27. }