2018-02-04 15:08:20 -08:00
|
|
|
using System;
|
|
|
|
|
2018-02-20 12:09:23 -08:00
|
|
|
namespace Ryujinx.Graphics.Gal
|
2018-02-04 15:08:20 -08:00
|
|
|
{
|
2018-02-23 13:48:27 -08:00
|
|
|
public unsafe interface IGalRenderer
|
2018-02-04 15:08:20 -08:00
|
|
|
{
|
|
|
|
void QueueAction(Action ActionMthd);
|
|
|
|
void RunActions();
|
|
|
|
|
2018-02-23 13:48:27 -08:00
|
|
|
void InitializeFrameBuffer();
|
2018-03-11 21:04:52 -07:00
|
|
|
void ResetFrameBuffer();
|
2018-02-04 15:08:20 -08:00
|
|
|
void Render();
|
2018-02-23 13:48:27 -08:00
|
|
|
void SetWindowSize(int Width, int Height);
|
2018-02-28 18:37:40 -08:00
|
|
|
void SetFrameBuffer(
|
|
|
|
byte* Fb,
|
|
|
|
int Width,
|
|
|
|
int Height,
|
|
|
|
float ScaleX,
|
|
|
|
float ScaleY,
|
|
|
|
float OffsX,
|
|
|
|
float OffsY,
|
|
|
|
float Rotate);
|
|
|
|
|
2018-02-04 15:08:20 -08:00
|
|
|
void SendVertexBuffer(int Index, byte[] Buffer, int Stride, GalVertexAttrib[] Attribs);
|
2018-02-28 18:37:40 -08:00
|
|
|
|
2018-02-04 15:08:20 -08:00
|
|
|
void SendR8G8B8A8Texture(int Index, byte[] Buffer, int Width, int Height);
|
2018-02-28 18:37:40 -08:00
|
|
|
|
2018-02-04 15:08:20 -08:00
|
|
|
void BindTexture(int Index);
|
|
|
|
}
|
|
|
|
}
|