POV-Ray : Newsgroups : povray.general : string code to load consecutive image_maps into array : Re: string code to load consecutive image_maps into array Server Time
23 Apr 2024 04:50:56 EDT (-0400)
  Re: string code to load consecutive image_maps into array  
From: Bald Eagle
Date: 10 Oct 2020 16:20:06
Message: <web.5f82170329a401cc1f9dae300@news.povray.org>
In this case, you can (easily) do both, since you use numbered image files.
Use the macro, but have the macro update a global array flag with the numbered
entries.
#ifdef () can check to see if an entry has been used, and if so then the macro
can just return the image_map that is already declared, else create a new
(needed) one.

Without numbered filenames, you could just compare the text filenames to see if
they've been used before.


Post a reply to this message

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