On Tue, 25 Jan 2011, Rich E wrote:
Ah, understood. Thanks for the nice code explanation and references... they both really help. I noticed that t_canvasenvironment remains privately defined, so it's difficult to use this struct. To get the dollarzero, I saw this works:
canvas_setcurrent(x_canvas); int dzero = canvas_getdollarzero();
That's an alias of pd_pushsym. You are supposed to use it with canvas_unsetcurrent (alias of pd_popsym), though I don't remember what can really go wrong if you don't unset/pop.
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC