|
![](/i/fill.gif) |
> #ifdef WIN32
> LoadLibrary("foo.dll");
> #endif
> #ifdef LINUX
> dlopen("bar.so", some_mode );
> #endif
> #ifdef SOMEOTHEROS
> loadsoordllonthisosfunction("foo.bar");
> #endif
Where exactly would you put those lines and what would they do? What will
the library contain and where exactly should POV-Ray call the functions
in those libraries? Exactly what kind of interface should POV-Ray offer
to those libraries and what would they do? How would you write such a
library to do what you want? How could you use such library to add a
new feature (eg. a new primitive or a new pattern) to POV-Ray?
How would you make sure that the library is compilable in all platforms?
How would you handle scene files which are eg. windows-only because only
the windows-version of the library has been provided?
--
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}// - Warp -
Post a reply to this message
|
![](/i/fill.gif) |