Query for OpenGL Stereo Capability
crjjrc
crjjrc at gmail.com
Tue Dec 4 06:30:22 PST 2007
On Oct 19, 10:23 am, va... at wxwidgets.org (Vadim Zeitlin) wrote:
> On Fri, 19 Oct 2007 08:46:25 -0700 crjjrc <crj... at gmail.com> wrote:
>
> c> Is there anyway in wxWidgets to query whether a wxGLCanvas can support
> c>stereo rendering?
>
> I am not a GL expert but I don't think there is any way to test this using
> wx. We should definitely expose a method to do it and implementing it
> should be almost trivial (especially in the svn trunk where the GL code was
> refactored and is much more concise and clear), so any patches implementing
> this would surely be welcome.
I'm reviving an old post here. It seems that we could effectively
query for OpenGL stereo rendering support if the two-stage creation
mechanism was still allowed for wxGLCanvas. The Create() function for
the wxGLCanvas seems to provide the functionality we need (and also
does the initialization we'd want) and returns a boolean indicating
success. Just checking the return value would tell us if a visual was
supported. An older message on this list (subject "wxGLCanvas: empty
(default) constructor") talks of why the default constructor was
removed, but mentions that it might be acceptable to put it back in
with the new, separate wxGLContext creation. Any thoughts?
- Chris
More information about the wx-users
mailing list