POV-Ray : Newsgroups : povray.pov4.discussion.general : Loading of Non-SDL Files : Re: Loading of Non-SDL Files Server Time
9 May 2024 09:42:22 EDT (-0400)
  Re: Loading of Non-SDL Files  
From: Allen
Date: 26 Nov 2008 17:15:00
Message: <web.492dc99125d670068f162dfb0@news.povray.org>
"Reactor" <rea### [at] hotmailcom> wrote:
> The way the parser could view the above code, after the aliases are applied:
>
> extern
> {
> #require    "objlib.dll"
>     usrObj = loadFile("plane.obj");
>     usrMatList = loadFile("plane.mtl");
>     ...
>     [ more plugin-specific commands issued by the parser in ]
>     [ a standardized way based on the users code and parser ]
> #else
>  [stuff that happens if dynamic library cannot be found]
> }
>
> The commands that the plugin can issue the parser must be limited, probably to
> things like what scene objects there are, environment variables, and commands
> to introduce additional objects into the scene.
> The amount of memory that the parser allows the plugin to have as well as how
> long the parser should wait for a plugin to finish should be user specified.
> Things like file I/O should be handled by calls to methods within the parser and
> be limited to the search paths.
>
> Bottom line, though, is that I really think the rendering engine, parser, and
> any plugins should be kept as separate as possible and loaded as needed.
>
> -Reactor

That would be really nice.  I think the #require should omit the extension
though to be more cross platform.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.