aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/IGalRenderTarget.cs
blob: c281fe06c30e573b0f007b1d00249ee01c13086a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
namespace Ryujinx.Graphics.Gal
{
    public interface IGalRenderTarget
    {
        void Bind();

        void BindColor(long key, int attachment);

        void UnbindColor(int attachment);

        void BindZeta(long key);

        void UnbindZeta();

        void Present(long key);

        void SetMap(int[] map);

        void SetTransform(bool flipX, bool flipY, int top, int left, int right, int bottom);

        void SetWindowSize(int width, int height);

        void SetViewport(int attachment, int x, int y, int width, int height);

        void Render();

        void Copy(
            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);
    }
}