bool MyApp::OnInit() { render_loop_on = false; wxBoxSizer *sizer = new wxBoxSizer(wxHORIZONTAL); frame = new MyFrame(); drawPane = new BasicDrawPane(frame); drawPane->SetDoubleBuffered(true); sizer->Add(drawPane, 1, wxEXPAND); frame->SetSizer(sizer); frame->Show(); activateRenderLoop(true); return true; }
bool VisApp::OnInit() { render_loop_on = false; wxBoxSizer* sizer = new wxBoxSizer(wxHORIZONTAL); frame = new wxFrame((wxFrame *) NULL, -1, wxT("Hyperviz"), wxPoint(-1,-1), wxSize(100,100)); drawPane = new Visualizer( (wxFrame*) frame, newestImageLock, imageAvailable, newestImage); sizer->Add(drawPane, 1, wxEXPAND); frame->SetSizer(sizer); frame->SetAutoLayout(true); frame->Show(); activateRenderLoop(true); return true; }