|
 |
ABX wrote:
>
> I think you missed flag UnofficialVersion.
A search for 'UnofficialVersion' in your source code did not find
anything.
> I did not compared any other unofficial pack about handling it yet becouse
> could not find any suggested way of making it. I have checked MegaPOV for it
> but that implementation seemed overcomplicated for me.
Here is the relevant part from MLPov:
/*ML: version_patch*/
#ifdef MLUNOFFICIAL
/* parse unofficial version */
Get_Token();
if (pov_stricmp(Token.Token_String,"mlpov") != 0)
{
Error("This version only recognizes #version unofficial mlpov\n");
}
opts.Unofficial_Version = (int)(Parse_Float() * 100 + 0.5);;
Parse_Semi_Colon(false);
if (opts.Unofficial_Version > UNOFFICIAL_VERSION_NUMBER)
{
Error("Your scene file requires MLPOV version %g or later!\n",
(DBL)(opts.Unofficial_Version / 100.0));
}
[...]
I think this is fairly simple (compared to megapov) and you can also quite
easily add support for multiple unofficial version strings (in case
several patches are merged and old scene files should render without
changes).
The 'Unofficial_Version_Blocking()' function seems a good idea though.
Christoph
--
POV-Ray tutorials, IsoWood include,
TransSkin and more: http://www.tu-bs.de/~y0013390/
Last updated 13 Aug. 2002 _____./\/^>_*_<^\/\.______
Post a reply to this message
|
 |