{"action":"closed","issue":{"url":"https://api.github.com/repos/LWJGL/lwjgl3/issues/106","labels_url":"https://api.github.com/repos/LWJGL/lwjgl3/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/LWJGL/lwjgl3/issues/106/comments","events_url":"https://api.github.com/repos/LWJGL/lwjgl3/issues/106/events","html_url":"https://github.com/LWJGL/lwjgl3/issues/106","id":112315188,"number":106,"title":"Custom cross-platform solution for GL context creation","user":{"login":"httpdigest","id":7488613,"avatar_url":"https://avatars.githubusercontent.com/u/7488613?v=3","gravatar_id":"","url":"https://api.github.com/users/httpdigest","html_url":"https://github.com/httpdigest","followers_url":"https://api.github.com/users/httpdigest/followers","following_url":"https://api.github.com/users/httpdigest/following{/other_user}","gists_url":"https://api.github.com/users/httpdigest/gists{/gist_id}","starred_url":"https://api.github.com/users/httpdigest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/httpdigest/subscriptions","organizations_url":"https://api.github.com/users/httpdigest/orgs","repos_url":"https://api.github.com/users/httpdigest/repos","events_url":"https://api.github.com/users/httpdigest/events{/privacy}","received_events_url":"https://api.github.com/users/httpdigest/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-20T08:41:21Z","updated_at":"2015-12-03T19:35:11Z","closed_at":"2015-12-03T19:35:11Z","body":"I am opening this ticket since I am about to create a revised SWT GLCanvas based on the old/current SWT-provided GLCanvas as a drop-in replacement with additional features such as specifying sample buffers and most importantly: using the platform-specific extensions to create a GL >= 3.0 (and GL>=3.2 core/compatibility) context.\r\n\r\nHowever, instead of coding that capability into a SWT-specific Canvas class, I was thinking about providing a general solution for creating contexts. I know this existed in LWJGL2 and I will see how I can make use of that. Otherwise I will look at GLFW and of course at the platform vendor-provided documentation for best practices on how to create contexts.\r\n\r\nThe interface to that could be:\r\n```Java\r\nlong createContext(long hwnd, ContextAttribs attribs);\r\nboolean makeCurrent(long context, long hwnd);\r\nboolean isCurrent(long context);\r\nboolean destroyContext(long context);\r\n```\r\nI want to open this issue both for tracking progress and for discussions."}}