added p2t namespace

This commit is contained in:
zzzzrrr
2010-01-22 19:50:35 -05:00
parent 793760887b
commit 5dbe785975
13 changed files with 49 additions and 17 deletions

View File

@@ -40,7 +40,7 @@
using namespace std;
#include "../poly2tri/poly2tri.h"
using namespace p2t;
void Init();
void ShutDown(int return_code);
@@ -76,6 +76,7 @@ bool draw_map = false;
int main(int argc, char* argv[])
{
if (argc != 5) {
cout << "Usage: p2t filename centerX centerY zoom" << endl;
return 1;
@@ -101,7 +102,7 @@ int main(int argc, char* argv[])
string line;
ifstream myfile(argv[1]);
vector<Point*> points;
vector<p2t::Point*> points;
if (myfile.is_open()) {
while (!myfile.eof()) {
getline(myfile, line);