Forums > Jitter

bind gl.texture to gl.sketch in js?

January 10, 2010 | 7:51 pm

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


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

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


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