aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx/UI/Renderer/OpenTKBindingsContext.cs
blob: 85e8585fcf406b20c5d395d8adc8123609db612a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using OpenTK;
using System;

namespace Ryujinx.Ava.UI.Renderer
{
    internal class OpenTKBindingsContext : IBindingsContext
    {
        private readonly Func<string, IntPtr> _getProcAddress;

        public OpenTKBindingsContext(Func<string, IntPtr> getProcAddress)
        {
            _getProcAddress = getProcAddress;
        }

        public IntPtr GetProcAddress(string procName)
        {
            return _getProcAddress(procName);
        }
    }
}