2018-06-23 17:39:25 -07:00
|
|
|
namespace Ryujinx.Graphics.Gal
|
|
|
|
{
|
2018-09-08 10:51:50 -07:00
|
|
|
public interface IGalRenderTarget
|
2018-06-23 17:39:25 -07:00
|
|
|
{
|
2018-09-25 15:55:30 -07:00
|
|
|
void Bind();
|
|
|
|
|
2019-03-03 17:45:25 -08:00
|
|
|
void BindColor(long key, int attachment);
|
2018-06-23 17:39:25 -07:00
|
|
|
|
2019-03-03 17:45:25 -08:00
|
|
|
void UnbindColor(int attachment);
|
2018-08-19 18:25:26 -07:00
|
|
|
|
2019-03-03 17:45:25 -08:00
|
|
|
void BindZeta(long key);
|
2018-08-19 18:25:26 -07:00
|
|
|
|
|
|
|
void UnbindZeta();
|
2018-06-23 17:39:25 -07:00
|
|
|
|
2019-03-03 17:45:25 -08:00
|
|
|
void Present(long key);
|
2018-06-23 17:39:25 -07:00
|
|
|
|
2019-03-03 17:45:25 -08:00
|
|
|
void SetMap(int[] map);
|
2018-08-22 22:07:23 -07:00
|
|
|
|
2019-03-03 17:45:25 -08:00
|
|
|
void SetTransform(bool flipX, bool flipY, int top, int left, int right, int bottom);
|
2018-06-23 17:39:25 -07:00
|
|
|
|
2019-03-03 17:45:25 -08:00
|
|
|
void SetWindowSize(int width, int height);
|
2018-06-23 17:39:25 -07:00
|
|
|
|
2019-03-03 17:45:25 -08:00
|
|
|
void SetViewport(int attachment, int x, int y, int width, int height);
|
2018-06-23 17:39:25 -07:00
|
|
|
|
|
|
|
void Render();
|
|
|
|
|
2018-07-18 22:30:21 -07:00
|
|
|
void Copy(
|
2019-03-03 17:45:25 -08:00
|
|
|
GalImage srcImage,
|
|
|
|
GalImage dstImage,
|
|
|
|
long srcKey,
|
|
|
|
long dstKey,
|
|
|
|
int srcLayer,
|
|
|
|
int dstLayer,
|
|
|
|
int srcX0,
|
|
|
|
int srcY0,
|
|
|
|
int srcX1,
|
|
|
|
int srcY1,
|
|
|
|
int dstX0,
|
|
|
|
int dstY0,
|
|
|
|
int dstX1,
|
|
|
|
int dstY1);
|
|
|
|
|
|
|
|
void Reinterpret(long key, GalImage newImage);
|
2018-06-23 17:39:25 -07:00
|
|
|
}
|
|
|
|
}
|