Eric Wilhelm wrote:
Hi,
# from Mattia Barbon
# on Sunday 26 October 2008:
I do not know if you can do anything to your configuration, but
as far as wxGLCanvas is concerned I'd add the ability
for the user to pass the attribute list rather than forcing double
buffering on everybody.
Yes, having the options would be great. I'm a bit unclear on the docs,
but they seem to imply that RGBA and DOUBLEBUFFERED are the default,
which is what puzzles me (or at least: having it default differently on
different computers seems odd.)
Would it be reasonable to default the attributes to that if none are
passed?
I do not know: changing the demo to use
my $self = $class->SUPER::new( $parent, -1, [-1, -1], [-1, -1], 0,
"GLCanvas",
[WX_GL_RGBA, WX_GL_DOUBLEBUFFER, 0] );
(still there but commented out) caused some rendering errors on Mac.
Knowing almost nothing about OpenGL, I have no idea if using these
attributes exposed some errors in the code or what else is happening,
but I'd rather not change the defaults unless I am sure it is safe to
do so.
Regards,
Mattia
P.S.: SVN trunk now wraps the WX_GL_* constants