|
|
Am 07.01.2018 um 01:04 schrieb Kenneth:
> Do you mean like this... (I'm using his very first texture as an example)...
[snip]
> *If* that's correct, then I do see that the #persistent is
> only invoked on the first animation frame; all the following frames will use the
> already-'declared' APPID_340814880_342762184... because it's 'persistent.'
>
> Am I thinking right?
Yes.
> It looks like most of his entire scene is in a union, so here's a question:
> Instead of having to wrap each and every #persistent FOO = ...... in an #ifndef
> block, could the entire UNION have only *one* #ifndef block around it instead?
> Or, maybe like...
>
> #ifndef(FOO)
> #persistent FOO =
> union{.....
> ........ everything (NO #persistent for any of these items, but regular #declares
> or #locals, if needed).........
> ...............
> }
> #else
> #end
>
> object{FOO}
I presume you mean something like this:
#ifndef(MyBigFatUnion)
#define Blah = ...
#define Dunno = ...
...
#persistent MyBigFatUnion = union {
object { Blah }
object { Dunno }
...
}
#endif
object { MyBigFatUnion }
That should indeed work fine.
Post a reply to this message
|
|