summaryrefslogtreecommitdiff
path: root/opengl/generate.cpp
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2005-04-18 01:01:56 +0000
committerIan C <ianc@noddybox.co.uk>2005-04-18 01:01:56 +0000
commit4d95c5cdaa720c5207a5f5b0d97a884a7ed1a3ab (patch)
treed44f4b49f78108b10a651c6a8c4d504093c7cafe /opengl/generate.cpp
parent14123d8051df5cbae0331c28f63a8ec3ef9a3852 (diff)
Added core of group explode. Also fixed modal windows as well as can be done with MS.
Diffstat (limited to 'opengl/generate.cpp')
-rw-r--r--opengl/generate.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/opengl/generate.cpp b/opengl/generate.cpp
index 94403c8..33d2f13 100644
--- a/opengl/generate.cpp
+++ b/opengl/generate.cpp
@@ -81,15 +81,15 @@ std::string Generate::Info()
return str.str();
}
-void Generate::MakeFiles()
+void Generate::MakeFiles(HWND parent)
{
if (m_blitzMax)
{
- GenerateBlitzMax();
+ GenerateBlitzMax(parent);
}
else
{
- GenerateC();
+ GenerateC(parent);
}
}
@@ -211,7 +211,7 @@ void Generate::CalcModelBounds()
}
-void Generate::GenerateC()
+void Generate::GenerateC(HWND parent)
{
std::FILE *fp;
int len;
@@ -236,7 +236,7 @@ void Generate::GenerateC()
//
if (!(fp=fopen(fname_h.c_str(),"w")))
{
- W32DLib::Common::Error(0,0,"Couldn't create header file");
+ W32DLib::Common::Error(parent,0,"Couldn't create header file");
return;
}
@@ -301,7 +301,7 @@ void Generate::GenerateC()
//
if (!(fp=fopen(fname_c.c_str(),"w")))
{
- W32DLib::Common::Error(0,0,"Couldn't create source file");
+ W32DLib::Common::Error(parent,0,"Couldn't create source file");
return;
}
@@ -413,12 +413,12 @@ void Generate::GenerateC()
missing="The following meshes had no material:\n\n"+missing;
missing+="\n\nThey were given the colour white.";
- W32DLib::Common::Message(0,0,missing);
+ W32DLib::Common::Message(parent,0,missing);
}
}
-void Generate::GenerateBlitzMax()
+void Generate::GenerateBlitzMax(HWND parent)
{
std::FILE *fp;
int len;
@@ -443,7 +443,7 @@ void Generate::GenerateBlitzMax()
//
if (!(fp=fopen(fname_h.c_str(),"w")))
{
- W32DLib::Common::Error(0,0,"Couldn't create header file");
+ W32DLib::Common::Error(parent,0,"Couldn't create header file");
return;
}
@@ -508,7 +508,7 @@ void Generate::GenerateBlitzMax()
//
if (!(fp=fopen(fname_c.c_str(),"w")))
{
- W32DLib::Common::Error(0,0,"Couldn't create source file");
+ W32DLib::Common::Error(parent,0,"Couldn't create source file");
return;
}
@@ -620,7 +620,7 @@ void Generate::GenerateBlitzMax()
missing="The following meshes had no material:\n\n"+missing;
missing+="\n\nThey were given the colour white.";
- W32DLib::Common::Message(0,0,missing);
+ W32DLib::Common::Message(parent,0,missing);
}
}