POV-Ray : Newsgroups : povray.general : multiple calls to inc : Re: multiple calls to inc Server Time
2 Aug 2024 06:18:36 EDT (-0400)
  Re: multiple calls to inc  
From: Jim Charter
Date: 21 Dec 2004 23:32:41
Message: <41c8f8e9$1@news.povray.org>
Alain wrote:
> Barehunter nous apporta ses lumieres ainsi en ce 2004-12-21 21:35... :
> 
>> Hello. I am doing a scene that calls on various INC files for various
>> object. Each inc file starts with #include "colors.inc". Wil all these
>> calls from sepparate files slow the render down?
>>
>>
>>  
>>
> colors.inc, as well as just about every "standard" inc files have a test 
> to ensure they are only effectively included once in any scane. It test 
> for the non-existance of a variable, if it don't exists, it create it 
> and proceed with the bulk of the file.
> 
> Alain
Right but you have to code for it:

#ifndef(Colors_Inc_Temp)
   #include "colors.inc"
#end


Post a reply to this message

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