|
|
Here is the stack.inc as promised in the binaries.animations group.
To use it do this:
// first include the file
#include "stack.inc"
// then initialize your stacks
Stack( "any_name" )
Stack( "any_other_name" )
// then push data
Push( "any_name", colPoint )
Push( "any_other_name", (<1,0.5,0.5> + BallsColor[id]) / 2 )
// then pop data
#local my1 = 0;
#local my2 = <0,0,0>;
#while( Pop( "any_name", my1 ) )
// note: you DO need these tmp variable or POV complains
#local tmp = Pop( "any_other_name", my2 );
#end
Notice how you can use any variable type in any stack. Just be consistant.
This is beta. The debug routines need cleaning up and it is not fully
tested.
--Rainer
Post a reply to this message
Attachments:
Download 'stack.inc.txt' (4 KB)
|
|
|
|
"Rainer Mager" <rvm### [at] cyberadjp> writes:
> Here is the stack.inc as promised in the binaries.animations group.
Gosh, you got me. I just wrote my own, and I hesitated posting it here.
Heck, mine is better than yours: it is fully 3.0 compatible! (Well, it has
been written under POV-Ray 3.0). I guess I'll keep it for me, since the
3.1 version appears to be coming out really soon (hopefully).
Roland.
--
Les francophones m'appellent Roland Mas,
English speakers call me Rowlannd' Mass,
Nihongode hanasu hitoha [Lolando Masu] to iimasu.
Choisissez ! Take your pick ! Erande kudasai !
Post a reply to this message
|
|