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 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 }


The documentation for this class was generated from the following files:
Generated on Mon Jun 9 19:13:26 2003 for NeReK Documentation by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002