Forums > Jitter

bind gl.texture to gl.sketch in js?

Jan 10 2010 | 7:51 pm

How I can bind gl.texture to gl.sketch in js?
I’ve looked through tutorials, but could not find an example.
I’m thinking about something like max patch method – sending message to sketch "texture ZZZ"…

Jan 11 2010 | 6:34 pm

For setting the global sketch attribute like you would in a patcher with "texture ZZZ":

mysketchobj.texture = "ZZZ";

For using it as a gl command, read up a little on redbook and use:


More info and some example cases in the forums (problems, discussions, and solutions):


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

Forums > Jitter