bind gl.texture to gl.sketch in js?
Hello
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"...
thanks
Theo
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:
mysketchobj.glbindtexture("ZZZ");
More info and some example cases in the forums (problems, discussions, and solutions):
-Joshua