bind gl.texture to gl.sketch in js?

Jan 10, 2010 at 7:51pm

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

#47692
Jan 11, 2010 at 6:34pm

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):

http://cycling74.com/forums/search.php?q=glbindtexture

-Joshua

#171514

You must be logged in to reply to this topic.