POV-Ray : Newsgroups : povray.general : Why doesn't this work (some #declare stuff) : Re: Why doesn't this work (some #declare stuff) Server Time
10 Aug 2024 20:56:35 EDT (-0400)
  Re: Why doesn't this work (some #declare stuff)  
From: Chris Huff
Date: 30 Oct 1999 12:37:37
Message: <381B1F66.422D3F9F@yahoo.com>
It passes by the line that declares linear_spline because of the #if
statement.
#include "colors.inc"

#declare Test = 0;//0 is the same as false


#if (Test)
        //because Test is 0, all this stuff is ignored and the #else
block is used instead.
        #declare screen_text = texture {pigment {White}}
        //You can't declare a variable as linear_spline! But this block
is ignored, so it doesn't matter.
        #declare Spline = linear_spline;

#else

        #declare screen_text = texture {pigment {White} finish {diffuse
0.3
reflection 0.3 specular 0.7}
        //You can't declare a variable as cubic_spline!
        #declare Spline = cubic_spline;

#end


Post a reply to this message

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