Forums > Jitter

jit.pwindow callbacks and GL drawing with JS

May 16, 2006 | 6:26 pm

is there a way to render directly to a pwindow from javascript (keeping things on the GPU)? Also can Javascript listener get callbacks from the pwindow?

cheers,

oli


May 16, 2006 | 7:27 pm

Just name the pwindow as you would normally for use with
jit.gl.render. The JitterListener notification should work properly
when supplied with the jit.pwindow name (internally, this is how the
info is sent on to jit.gl.handle, so it should work fine), but let us
know if you encounter any problems. Worst case, you can always filter
mouse messages and send them into the js object in the patcher,
though let us know any obstacles you encounter which seem like they
should be addressed by changes in functionality/features.

-Joshua


Viewing 2 posts - 1 through 2 (of 2 total)