I'm currently working with wxWidgets 3.0.0 and everything works pretty good

There is only one thing which is currently not working as I want it.
First of all, I know about the wxGLCanvas class, but the problem is, I'm writing my own Game Engine, which has its own GL Context class and also a Direct3D 11 context class.
So I can't use "wxGLCanvas" or "wxGLContext".
This is actually working, but I can not enable anti-aliasing (i.e. choose an multi-sampling pixel format) for the wxWindow object.
This is how I get the HWND and HDC inside my game engine:
Code: Select all
// Inside my editor:
class MyScreenFrame : public wxWindow { /* ... */ };
MyScreenFrame* myScreen = /* ... */
auto nativeHandle = myScreen->GetHWND(); // <-- Get native HWND handle from wxWidgets
CreateRenderContext(nativeHandle);
// Inside my game engine:
CreateRenderContext(HWND nativeHandle)
{
HWND hDC = GetDC(nativeHandle); // <-- Get native HDC handle.
wglChoosePixelFormatARB(hDC, /* ... */); // <-- Choose pixel format with multi-sampling configuration via GL ARB extension. (THIS WILL FAIL)
/* ... */
}
Thanks in advance
