Hi, I'm trying to combine some gl objects in my c code but I can't figure
out how to instantiate or draw them. I have the following in my externals
if(!(x->jit_gl_mesh = jit_object_new(gensym("jit_gl_mesh"),
error("graph2D: couldn't instantiate jit_gl_mesh");
and later on:
object_attr_setvalueof(x->jit_gl_mesh, gensym("vertex_matrix"), 1,
The object seems to be valid, and I'm sure about the matrix data, but I
can't get it to show up in my rendering window.
If I try to do the same with jit_gl_gridshape or jit_gl_nurbs, they won't
even instantiate using the jit_object_new method. I then tried jit_ob3d_new
instead, and the objects are instantiated, but they don't show up either and
I get zgetfn errors about corrupt objects.
I'm clearly missing something here. Any clues?