|
 |
David Vincent-Jones <geo### [at] galaxynet com> wrote:
> I am reading in a long list of objects along with their locations.
> Some of the objects are defined in an inc file and some in the main file.
> Some objects may not be defined at all .........
> Is there some way to us a #ifdef type of statement so that the pov file
will
> just skip any non-defined object and display only the defined items?
How about using #ifdef?! The function works exactly the same, whether a
variable is declared as a float, vector, object, texture, whatever..., e.g.:
#include "Objects.inc"
#ifdef (Object1) object {Object1} #end
#ifdef (Object2) object {Object2} #end
Post a reply to this message
|
 |