- wxLog::SetTraceMask(wxTraceMessages);
-
- // Create the main frame window
- MyFrame *frame = new MyFrame(NULL, "Cube OpenGL Demo", wxPoint(50, 50),
- wxSize(400, 300));
- // Give it an icon
-#ifdef wx_msw
- frame->SetIcon(wxIcon("mondrian"));
-#endif
-
- // Make a menubar
- wxMenu *winMenu = new wxMenu;
-
- winMenu->Append(wxID_EXIT, "&Close");
- winMenu->Append(ID_NEW_WINDOW, "&New" );
- wxMenuBar *menuBar = new wxMenuBar;
- menuBar->Append(winMenu, "&Window");
-
- winMenu = new wxMenu;
- winMenu->Append(ID_DEF_ROTATE_LEFT_KEY, "Rotate &left");
- winMenu->Append(ID_DEF_ROTATE_RIGHT_KEY, "Rotate &right");
- menuBar->Append(winMenu, "&Key");
-
- frame->SetMenuBar(menuBar);
-
- frame->m_canvas = new TestGLCanvas(frame, -1, wxPoint(0, 0), wxSize(200, 200));
-
- // Show the frame
- frame->Show(TRUE);
-
- return TRUE;