added wxGLCanvas::IsDisplaySupported() (patch 1879906)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -385,6 +385,11 @@ MyFrame::MyFrame()
|
||||
|
||||
SetClientSize(400, 400);
|
||||
Show();
|
||||
|
||||
// test IsDisplaySupported() function:
|
||||
static const int attribs[] = { WX_GL_RGBA, WX_GL_DOUBLEBUFFER, 0 };
|
||||
wxLogStatus("Double-buffered display %s supported",
|
||||
wxGLCanvas::IsDisplaySupported(attribs) ? "is" : "not");
|
||||
}
|
||||
|
||||
void MyFrame::OnClose(wxCommandEvent& WXUNUSED(event))
|
||||
|
Reference in New Issue
Block a user