I uesd a following program in C++ to run a pov file...
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
void runsystem(string cmm)
{
cout << " * " << cmm << " starts.n";
system(cmm.c_str());
cout << " * " << cmm << " ends.n";
}
int main(void)
{
string cmm;
cmm ="./pvengine /render /exit dam.pov";
runsystem (cmm);
return 0;
}
Here the problem is my program does not exit unless I close POV-ray window.
Once rendering finish program should exit from the loop, How can I do this?
Post a reply to this message
|