X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2f6c54eb076d760cbb6fb15e899f15fbbd575850..0e974385f6ab66910ee42ca287fbf9ada2392dc1:/samples/opengl/cube/cube.h diff --git a/samples/opengl/cube/cube.h b/samples/opengl/cube/cube.h index c01b89e1c3..f7d4de6fbd 100644 --- a/samples/opengl/cube/cube.h +++ b/samples/opengl/cube/cube.h @@ -40,17 +40,19 @@ public: DECLARE_EVENT_TABLE() }; +#if wxUSE_GLCANVAS + class TestGLCanvas: public wxGLCanvas { friend class MyFrame; public: TestGLCanvas(wxWindow *parent, const wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, - long style = 0, const wxString& name = "TestGLCanvas"); + long style = 0, const wxString& name = _T("TestGLCanvas")); TestGLCanvas(wxWindow *parent, const TestGLCanvas &other, const wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, - const wxString& name = "TestGLCanvas" ); + const wxString& name = _T("TestGLCanvas") ); ~TestGLCanvas(void); @@ -91,3 +93,5 @@ DECLARE_EVENT_TABLE() #endif +#endif +