[PD-dev] need to find symbol of current patch (from code)

Tim Blechmann TimBlechmann at gmx.net
Tue Sep 6 00:00:47 CEST 2005


>   t_canvas *z = canvas_getcurrent();

iirc, it's only allowed to call this in the constructor ...

a t_canvas is a _glist possibly you can access it with z->gl_name ...
(have a look at g_canvas.h for implementation details)
but be aware that you are not allowed to include g_canvas.h, since it's
a private header... so your binaries will only work with different
versions of pd

hth .... tim

-- 
mailto:TimBlechmann at gmx.de    ICQ: 96771783
http://www.mokabar.tk

latest mp3: kMW.mp3
http://mattin.org/mp3.html

latest cd: Goh Lee Kwang & Tim Blechmann: Drone
http://www.geocities.com/gohleekwangtimblechmannduo/

After one look at this planet any visitor from outer space 
would say "I want to see the manager."
				      William S. Burroughs




More information about the Pd-dev mailing list