summaryrefslogtreecommitdiff
path: root/osframework/source/demos/XMLDemo/main.cpp
blob: 93995d49198a8710be40cc9fdc364b1db396d6be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//////////////////////////////////////////////////////////////////////////
//						main.cpp
//
//	This is the starting point for all new projects. This file's purpose is
//	pretty small, but important. In here we create our application, initialize
//	it, and begin processing all the game code.
//
//	NOTE: You should have read and understood demos 1 and 2 before 
//	this, as topics that are already covered will be either not commented
//	or minimally so. In addition, this demo uses just a couple features from the v.1.2
//	release of the framework, so it is beneficial to have read and understood
//	V12Demo as well. Though, if you fully understand demos 1 and 2, you'll probably
//	be fine enough.
//
//	This demo will teach you:
//	* How to read in XML files from disk
//  * How to sift through the XML data and extract the information you need
//////////////////////////////////////////////////////////////////////////

#include "XMLDemoApp.h"

using namespace Sexy;

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
	gHInstance = hInstance;

	XMLDemoApp* anApp = new XMLDemoApp();
	anApp->Init();
	anApp->Start();
	delete anApp;

	return 0;
}