IGalRenderer.cs 770 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. namespace Ryujinx.Graphics.Gal
  3. {
  4. public unsafe interface IGalRenderer
  5. {
  6. void QueueAction(Action ActionMthd);
  7. void RunActions();
  8. void InitializeFrameBuffer();
  9. void ResetFrameBuffer();
  10. void Render();
  11. void SetWindowSize(int Width, int Height);
  12. void SetFrameBuffer(
  13. byte* Fb,
  14. int Width,
  15. int Height,
  16. float ScaleX,
  17. float ScaleY,
  18. float OffsX,
  19. float OffsY,
  20. float Rotate);
  21. void SendVertexBuffer(int Index, byte[] Buffer, int Stride, GalVertexAttrib[] Attribs);
  22. void SendR8G8B8A8Texture(int Index, byte[] Buffer, int Width, int Height);
  23. void BindTexture(int Index);
  24. }
  25. }