POV-Ray : Newsgroups : povray.binaries.images : And even more shrubs : Re: And even more shrubs Server Time
19 Aug 2024 18:22:46 EDT (-0400)
  Re: And even more shrubs  
From: Remco de Korte
Date: 3 Dec 2000 21:06:44
Message: <3A2AFC12.692C8225@onwijs.com>
=Bob= wrote:
> 
> Hi Remco,
> 
> The way I have it set up, there's a macro to
> set the variables to their default values. PovRay
> doesn't allow enough parameters to a macro to
> handle them all, so I had no choice but to make
> most of them global anyway. So what I've been
> doing is calling the macro to set default values
> then changing just the ones I want. Does that
> sound like a good way to do it? I couldn't think
> of better way.
> 
> =Bob=
> 

Seems fair (if I understand it right).
The way I often do it is use the main variables as parameters for the macro and
declare (#local) the others in the macro if they aren't already declared
(IFNDEF).

Remco


Post a reply to this message

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