From 4d95c5cdaa720c5207a5f5b0d97a884a7ed1a3ab Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 18 Apr 2005 01:01:56 +0000 Subject: Added core of group explode. Also fixed modal windows as well as can be done with MS. --- opengl/generate.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'opengl/generate.cpp') 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); } } -- cgit v1.2.3