summaryrefslogtreecommitdiff
path: root/opengl/generate.cpp
diff options
context:
space:
mode:
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);
}
}