1/* 2 * Copyright 2009, Haiku Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Alexandre Deckner <alex@zappotek.com> 7 */ 8 9 10#include "App.h" 11 12#include "MainWindow.h" 13 14 15App::App() 16 : 17 BApplication("application/x-vnd.Haiku-Haiku3d"), 18 fMainWindow(NULL) 19{ 20} 21 22 23App::~App() 24{ 25} 26 27 28void 29App::ReadyToRun() 30{ 31 BRect frame(50, 50, 640 + 50, 480 + 50); 32 const char* title = "Haiku3d"; 33 fMainWindow = new MainWindow(frame, title); 34 fMainWindow->Show(); 35} 36 37 38bool 39App::QuitRequested() 40{ 41 return true; 42} 43 44 45int 46main(int argc, char** argv) 47{ 48 App app; 49 app.Run(); 50 return 0; 51} 52