toon-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Toon-members] resize in dynamic vectors/matrices ?


From: E. Rosten
Subject: Re: [Toon-members] resize in dynamic vectors/matrices ?
Date: Wed, 15 Apr 2009 16:57:21 +0100 (BST)

On Wed, 15 Apr 2009, Gerhard Reitmayr wrote:

sometimes I also store larger configuration data sets, for example I used empirical distributions somewhere once. and then the dynamic vector is the only thing which allows lists of unknown lengths in gvars, AFAIK ?

actually I use it for the following:

gvars3<Vector<> > color("color");
glColor(*color);

// in gvars file
color = [ 1 1 1 ] // no alpha
color = [ 1 1 1 0.5 ] // with alpha

saves me a number ;)

I use this trick too, but I won't whinge too much if it disappears.

-Ed
--
(You can't go wrong with psycho-rats.)(http://mi.eng.cam.ac.uk/~er258)

/d{def}def/f{/Times s selectfont}d/s{11}d/r{roll}d f 2/m{moveto}d -1
r 230 350 m 0 1 179{ 1 index show 88 rotate 4 mul 0 rmoveto}for/s 12
    d f pop 235 420 translate 0 0 moveto 1 2 scale show showpage





reply via email to

[Prev in Thread] Current Thread [Next in Thread]