[ wxwindows-Patches-1879906 ] Adds static function to test support for wxGLCanvas attribs.

SourceForge.net noreply at sourceforge.net
Sun Feb 3 06:53:08 PST 2008


Patches item #1879906, was opened at 2008-01-25 19:20
Message generated for change (Settings changed) made by vadz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1879906&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: OpenGL
Group: new feature
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: crjjrc (crjjrc)
Assigned to: Nobody/Anonymous (nobody)
Summary: Adds static function to test support for wxGLCanvas attribs.

Initial Comment:
This patch implements a static function IsDisplaySupported that tests if the specified attributes are supported by the platform embedding layer for OpenGL canvases.  It does this without first having to create a canvas. It uses existing methods for the Mac and X11-based wx implementations, while on MSW it calls ChooseMatchingPixelFormat directly.  The function is implemented for X11-based, Mac, and MSW builds.  A simple test has been added to samples/opengl/cube/cube.cpp to display a message in the statusbar if double buffering is not supported.

----------------------------------------------------------------------

>Comment By: Vadim Zeitlin (vadz)
Date: 2008-02-03 15:53

Message:
Logged In: YES 
user_id=71618
Originator: NO

Thanks a lot for the nicely done patch!

I've applied it with only minor changes, the most important one being that
I declared the new function (once) in wx/glcanvas.h instead of doing it in
each of the derived classes.

BTW, if you want your name to appear in attributions in docs/changes.txt
please let me know it (putting "crjjrc" there is a bit cryptic although we
can do this too if you prefer, of course).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1879906&group_id=9863




More information about the wx-dev mailing list