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 #include <Alert.h> 10 11 #include "App.h" 12 #include "MainWindow.h" 13 14 15 App::App() 16 : 17 BApplication("application/x-vnd.Haiku-Haiku3d") 18 { 19 BRect frame(50, 50, 640 + 50, 480 + 50); 20 const char *title = "Haiku3d"; 21 fMainWindow = new MainWindow(frame, title); 22 } 23 24 25 App::~App() 26 { 27 } 28 29 30 void App::AboutRequested() 31 { 32 BAlert* alert; 33 alert = new BAlert("About", "A little 3d demo", "ok"); 34 alert->Go(NULL); 35 } 36 37 38 void App::MessageReceived(BMessage *message) 39 { 40 } 41 42 43 int 44 main(int argc, char** argv) 45 { 46 App app; 47 app.Run(); 48 return 0; 49 } 50