Main Page   Namespace List   Alphabetical List   Compound List   File List   Compound Members   File Members  

Nviz3DApp Class Reference

#include <nviz3d.h>

List of all members.

Public Methods

bool OnInit (void)


Member Function Documentation

bool Nviz3DApp::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 }


The documentation for this class was generated from the following files:
Generated on Fri Jun 6 22:02:33 2003 for NeReK by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002