Re: Add `wxGLCanvas::GetProcAddress()` (#9215)

42 views
Skip to first unread message

VZ

unread,
Feb 13, 2026, 6:21:23 PM (7 days ago) Feb 13
to wx-...@googlegroups.com, wxtrac, State change
vadz left a comment (wxWidgets/wxWidgets#9215)

@dsa-t Do you have an example of how would it be used that I could, perhaps, incorporate in a sample and use for testing it myself? I.e. what would be the function that you could load like this without checking for the current backend first in any case?


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you modified the open/close state.Message ID: <wxWidgets/wxWidgets/issues/9215/3900058020@github.com>

VZ

unread,
Feb 13, 2026, 6:21:24 PM (7 days ago) Feb 13
to wx-...@googlegroups.com, wxtrac, State change

Reopened #9215.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you modified the open/close state.Message ID: <wxWidgets/wxWidgets/issue/9215/issue_event/22781060226@github.com>

dsa-t

unread,
Feb 16, 2026, 1:41:45 AM (5 days ago) Feb 16
to wx-...@googlegroups.com, wxtrac, State change
dsa-t left a comment (wxWidgets/wxWidgets#9215)

For example, it should make it easier to initialize GLAD (like https://gitlab.kitware.com/vtk/vtk/-/blob/04661f4bcdf84195a75e4e91a542b9e6e8bd8e37/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx#L788) without having to load the functions separately.

I don't have a wx sample yet.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you modified the open/close state.Message ID: <wxWidgets/wxWidgets/issues/9215/3906726709@github.com>

VZ

unread,
Feb 16, 2026, 12:18:38 PM (4 days ago) Feb 16
to wx-...@googlegroups.com, wxtrac, State change
vadz left a comment (wxWidgets/wxWidgets#9215)

According to SDL wiki this function can't be static in wxGLContext under Windows as the available extensions are context-specific. Is it ok for your planned use of it or should we make it static and let people decide themselves if they want to follow the documentation and make a context current before calling it or not?


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you modified the open/close state.Message ID: <wxWidgets/wxWidgets/issues/9215/3909659595@github.com>

dsa-t

unread,
Feb 16, 2026, 1:11:46 PM (4 days ago) Feb 16
to wx-...@googlegroups.com, wxtrac, State change
dsa-t left a comment (wxWidgets/wxWidgets#9215)

Non-static is fine for me.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you modified the open/close state.Message ID: <wxWidgets/wxWidgets/issues/9215/3909876841@github.com>

VZ

unread,
Feb 16, 2026, 2:19:41 PM (4 days ago) Feb 16
to wx-...@googlegroups.com, wxtrac, State change
vadz left a comment (wxWidgets/wxWidgets#9215)

Now I wonder if this should be in wxGLContext or in wxGLCanvas. I'd say that the former makes more sense, but we already have a clearly related IsExtensionSupported() in the latter (albeit as static), so maybe we should put this there too for consistency? But then it would need to take wxGLContext as argument, which is probably not what people expect?

Sorry for all the questions, but it's genuinely difficult to decide on the API when I still don't really know how it's going to be used.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you modified the open/close state.Message ID: <wxWidgets/wxWidgets/issues/9215/3910194975@github.com>

dsa-t

unread,
Feb 19, 2026, 5:52:31 AM (yesterday) Feb 19
to wx-...@googlegroups.com, wxtrac, State change
dsa-t left a comment (wxWidgets/wxWidgets#9215)

I think it's fine to implement in wxGLContext then.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you modified the open/close state.Message ID: <wxWidgets/wxWidgets/issues/9215/3926442335@github.com>

VZ

unread,
9:29 AM (13 hours ago) 9:29 AM
to wx-...@googlegroups.com, wxtrac, State change

Closed #9215 as completed via b0d50ff.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you modified the open/close state.Message ID: <wxWidgets/wxWidgets/issue/9215/issue_event/22950347441@github.com>

Reply all
Reply to author
Forward
0 new messages