xref: /haiku/src/apps/glteapot/TeapotApp.cpp (revision 16d5c24e533eb14b7b8a99ee9f3ec9ba66335b1e)
1 /*
2 	Copyright 1999, Be Incorporated.   All Rights Reserved.
3 	This file may be used under the terms of the Be Sample Code License.
4 */
5 
6 #include "TeapotApp.h"
7 
8 int
9 main(int argc, char** argv)
10 {
11 	TeapotApp* app = new TeapotApp("application/x-vnd.Haiku-GLTeapot");
12 	app->Run();
13 	delete app;
14 	return 0;
15 }
16 
17 
18 TeapotApp::TeapotApp(const char* sign)
19 	: BApplication(sign)
20 {
21 	fTeapotWindow = new TeapotWindow(BRect(5, 25, 300, 315), "GLTeapot", B_TITLED_WINDOW, 0);
22 	fTeapotWindow->Show();
23 }
24 
25 
26 void
27 TeapotApp::MessageReceived(BMessage* msg)
28 {
29 //	msg->PrintToStream();
30 	switch (msg->what) {
31 
32 		default:
33 			BApplication::MessageReceived(msg);
34 	}
35 }
36