aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Gtk3/UI/OpenToolkitBindingsContext.cs
blob: 1224ccfe098c894479c102e6c18bae118d49fb78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using SPB.Graphics;
using System;

namespace Ryujinx.UI
{
    public class OpenToolkitBindingsContext : OpenTK.IBindingsContext
    {
        private readonly IBindingsContext _bindingContext;

        public OpenToolkitBindingsContext(IBindingsContext bindingsContext)
        {
            _bindingContext = bindingsContext;
        }

        public IntPtr GetProcAddress(string procName)
        {
            return _bindingContext.GetProcAddress(procName);
        }
    }
}