{"action":"created","issue":{"url":"https://api.github.com/repos/sq/JSIL/issues/649","labels_url":"https://api.github.com/repos/sq/JSIL/issues/649/labels{/name}","comments_url":"https://api.github.com/repos/sq/JSIL/issues/649/comments","events_url":"https://api.github.com/repos/sq/JSIL/issues/649/events","html_url":"https://github.com/sq/JSIL/issues/649","id":55151316,"number":649,"title":"Marshal.GetDelegateForFunctionPointer is not implemented","user":{"login":"mispy","id":3055384,"avatar_url":"https://avatars.githubusercontent.com/u/3055384?v=3","gravatar_id":"","url":"https://api.github.com/users/mispy","html_url":"https://github.com/mispy","followers_url":"https://api.github.com/users/mispy/followers","following_url":"https://api.github.com/users/mispy/following{/other_user}","gists_url":"https://api.github.com/users/mispy/gists{/gist_id}","starred_url":"https://api.github.com/users/mispy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mispy/subscriptions","organizations_url":"https://api.github.com/users/mispy/orgs","repos_url":"https://api.github.com/users/mispy/repos","events_url":"https://api.github.com/users/mispy/events{/privacy}","received_events_url":"https://api.github.com/users/mispy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-22T13:09:59Z","updated_at":"2015-01-22T13:22:37Z","closed_at":null,"body":"I figure this may be a wontfix one, but I should open it anyway for searchableness. FNA makes heavy use of GetDelegateForFunctionPointer to wrap the p/invoke SDL API as in:\r\n\r\n```csharp\r\nglBlendFuncSeparate = (BlendFuncSeparate) Marshal.GetDelegateForFunctionPointer(\r\n\tSDL.SDL_GL_GetProcAddress(\"glBlendFuncSeparate\"),\r\n\ttypeof(BlendFuncSeparate)\r\n);\r\nglBlendEquationSeparate = (BlendEquationSeparate) Marshal.GetDelegateForFunctionPointer(\r\n\tSDL.SDL_GL_GetProcAddress(\"glBlendEquationSeparate\"),\r\n\ttypeof(BlendEquationSeparate)\r\n);\r\nglColorMask = (ColorMask) Marshal.GetDelegateForFunctionPointer(\r\n\tSDL.SDL_GL_GetProcAddress(\"glColorMask\"),\r\n\ttypeof(ColorMask)\r\n);\r\nglDepthMask = (DepthMask) Marshal.GetDelegateForFunctionPointer(\r\n\tSDL.SDL_GL_GetProcAddress(\"glDepthMask\"),\r\n\ttypeof(DepthMask)\r\n);\r\n```\r\n\r\nobviously function pointers aren't a thing in a JSIL context, which is fine, but a GetDelegateForFunctionPointer that works with proxies would be nice because then I could just proxy the SDL functions directly and have stuff work."},"comment":{"url":"https://api.github.com/repos/sq/JSIL/issues/comments/71019075","html_url":"https://github.com/sq/JSIL/issues/649#issuecomment-71019075","issue_url":"https://api.github.com/repos/sq/JSIL/issues/649","id":71019075,"user":{"login":"mispy","id":3055384,"avatar_url":"https://avatars.githubusercontent.com/u/3055384?v=3","gravatar_id":"","url":"https://api.github.com/users/mispy","html_url":"https://github.com/mispy","followers_url":"https://api.github.com/users/mispy/followers","following_url":"https://api.github.com/users/mispy/following{/other_user}","gists_url":"https://api.github.com/users/mispy/gists{/gist_id}","starred_url":"https://api.github.com/users/mispy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mispy/subscriptions","organizations_url":"https://api.github.com/users/mispy/orgs","repos_url":"https://api.github.com/users/mispy/repos","events_url":"https://api.github.com/users/mispy/events{/privacy}","received_events_url":"https://api.github.com/users/mispy/received_events","type":"User","site_admin":false},"created_at":"2015-01-22T13:22:37Z","updated_at":"2015-01-22T13:22:37Z","body":"On second thought, that GetProcAddress is a very special-casey kind of thing. not sure there's a way JSIL can handle this, hmm"}}