xref: /haiku/src/apps/haiku3d/App.cpp (revision 820dca4df6c7bf955c46e8f6521b9408f50b2900)
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 
15 App::App()
16 	:
17 	BApplication("application/x-vnd.Haiku-Haiku3d"),
18 	fMainWindow(NULL)
19 {
20 }
21 
22 
23 App::~App()
24 {
25 }
26 
27 
28 void
29 App::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 
38 bool
39 App::QuitRequested()
40 {
41 	return true;
42 }
43 
44 
45 int
46 main(int argc, char** argv)
47 {
48 	App app;
49 	app.Run();
50 	return 0;
51 }
52