POV-Ray : Newsgroups : povray.off-topic : More random humous : Re: More random humous Server Time
10 Oct 2024 03:18:40 EDT (-0400)
  Re: More random humous  
From: Warp
Date: 8 Oct 2008 09:02:49
Message: <48ecaf79@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> > How do you share a changing object among several other objects?

> You put the image as one field of a structure (in C-speak), and the 
> position as another field. When you want to move the sprite, you create 
> a new sprite with the same image and a new position. The compiler avoids 
> copying the actual image because it knows you can't change it so it's OK 
> to share it with other sprites.

  What if you want to change the image and want all the sprites using that
image to see the change?

-- 
                                                          - Warp


Post a reply to this message

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