- /* Create the main frame window */
- MyFrame *frame = new MyFrame(NULL, "wxWindows OpenGL Demo", wxPoint(50, 50), wxSize(400, 300));
+ // Create the main frame window
+ MyFrame *frame = new MyFrame(NULL, wxT("wxWindows OpenGL Penguin Sample"),
+ wxDefaultPosition, wxDefaultSize);
+
+ /* Make a menubar */
+ wxMenu *fileMenu = new wxMenu;
+
+ fileMenu->Append(wxID_EXIT, wxT("E&xit"));
+ wxMenuBar *menuBar = new wxMenuBar;
+ menuBar->Append(fileMenu, wxT("&File"));
+ frame->SetMenuBar(menuBar);
+
+#if wxUSE_GLCANVAS
+ frame->SetCanvas( new TestGLCanvas(frame, wxID_ANY, wxDefaultPosition,
+ wxSize(200, 200), wxSUNKEN_BORDER) );
+
+ /* Load file wiht mesh data */
+ frame->GetCanvas()->LoadLWO( wxT("penguin.lwo") );