#include <nviz3d.h>
Public Methods | |
bool | OnInit (void) |
|
Definition at line 238 of file nviz3d.cpp. References NvizFrame::glc_nvizcanvas.
00239 { 00240 wxLog::SetTraceMask(wxTraceMessages); 00241 00242 // Create the main frame window 00243 NvizFrame *frame = new NvizFrame(NULL, "Cube OpenGL Demo", wxPoint(50, 50), 00244 wxSize(400, 300)); 00245 // Give it an icon 00246 #ifdef wx_msw 00247 frame->SetIcon(wxIcon("mondrian")); 00248 #endif 00249 00250 // Make a menubar 00251 wxMenu *winMenu = new wxMenu; 00252 00253 winMenu->Append(wxID_EXIT, "&Close"); 00254 wxMenuBar *menuBar = new wxMenuBar; 00255 menuBar->Append(winMenu, "&Window"); 00256 00257 frame->SetMenuBar(menuBar); 00258 00259 frame->glc_nvizcanvas = new Nviz3DCanvas(frame, -1, wxDefaultPosition, wxDefaultSize); 00260 00261 // Show the frame 00262 frame->Show(TRUE); 00263 00264 return TRUE; 00265 } |