#include <nviz3d.h>
Public Methods | |
bool | OnInit (void) |
|
Definition at line 46 of file nviz3d.cpp. References NvizFrame::glc_nvizcanvas, and SETTINGS.
00047 { 00048 // Create the main frame window 00049 NvizFrame *frame = new NvizFrame(NULL, "Nviz3D OpenGL Demo", wxPoint(50, 50), 00050 wxSize(400, 300)); 00051 frame->glc_nvizcanvas = new Nviz3DCanvas(frame, -1, wxDefaultPosition, wxDefaultSize); 00052 00053 // Make a menubar 00054 wxMenu *winMenu = new wxMenu; 00055 winMenu->Append(wxID_EXIT, "&Close"); 00056 winMenu->Append(SETTINGS, "&Settings"); 00057 wxMenuBar *menuBar = new wxMenuBar; 00058 menuBar->Append(winMenu, "&Window"); 00059 frame->SetMenuBar(menuBar); 00060 00061 // Show the frame 00062 frame->Show(TRUE); 00063 00064 return TRUE; 00065 } |