Hello,
I am trying to use wxWidgets on a Tinker Board with TinkerOS. I am wondering on how to use wxGLCanvas with OpenGL/ES. TinkerOS comes with wxWidgets 3.0.2 and I compiled wxWidgets 3.1.4 as it comes with WX_GL_ES2 attributes.
Is there any example on how to use wxGLCanvas with OpenGL ES ?
Another problem is that wxWidgets is using GLX to interface with the window system and as a consequence "TinkerOS" loads the OpenGL software driver. Is there a way to use EGL as a backend for wxGLCanvas ?
Thanks
David
wxGLCanvas and OpenGL ES
Re: wxGLCanvas and OpenGL ES
I have not used OpenGL ES. But since ThinkerOS is Debian-based I suppose that GLX should be internally used.
wxWidgets 3.1.0 and above provide a way to create a ES context, by setting the proper ES() flag with the wxGLContextAttrs. See https://docs.wxwidgets.org/trunk/classw ... b2d7eb5172
I also suppose that using ES() is not compatible with CoreProfile(), CompatibilityProfile() or ForwardCompatible()
wxWidgets 3.1.0 and above provide a way to create a ES context, by setting the proper ES() flag with the wxGLContextAttrs. See https://docs.wxwidgets.org/trunk/classw ... b2d7eb5172
I also suppose that using ES() is not compatible with CoreProfile(), CompatibilityProfile() or ForwardCompatible()
I doubt it.Is there a way to use EGL as a backend for wxGLCanvas ?