Forums > Jitter

jit.gl.lua + jit.gl.text2d stability


div
February 14, 2008 | 12:10 pm

Hi all,

Am looking to use jit.gl.text2d in jit.gl.lua.

It seems unstable. I’ve attached an example patch and script.

Any thoughts?

Tim

autowatch = 1

Text = jit.new("jit.gl.text2d", this.drawto)
Text.text = "Go"

function draw()
Text:draw()
end

max v2;
#N vpatcher 251 44 747 846;
#P origin -11 -353;
#P user jit.pwindow 38 28 402 302 0 1 0 0 1 1;
#X name listen;
#P toggle 21 341 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 21 360 57 196617 qmetro 30;
#P newex 21 381 50 196617 t b erase;
#P newex 21 406 93 196617 jit.gl.render listen;
#P newex 21 440 170 196617 jit.gl.lua listen @file text2d.lua;
#P connect 4 0 3 0;
#P connect 3 0 2 0;
#P fasten 2 1 1 0 66 402 26 402;
#P fasten 2 0 1 0 26 402 26 402;
#P pop;


March 29, 2008 | 8:13 pm

.text seems to be a method of jit.gl.text2/3d. try

text.text("Go")


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