So, I've been working on converting the old opengl tutorial to current
J standards, and I've been running into problems where I lack
sufficient perspective to see the solution.

Here's my current issue:

https://gist.github.com/rdm/ef3fe864d337324771de

Loading that ogl_simple.ijs script in jqt (j803) renders a triangle for me.

There are some oddities to it:

(*) the triangle appears different in osx than in windows, which
reflect porting issues which should probably be addressed somehow.

(*) the "init" event happens after the "paint" event, and happens
every paint event, which suggests it's mis-named, and should not be a
separate event.

But the real puzzler is what happens when I call get_pixels, for
example with the dimensions 10 10. I get a domain error when trying to
call glReadPixels.

cderx'' claims that there's no error and that the operation completed
successfully.

cder'' claims that the problem is that the argument at index 6 (the
memory address supplied by mema) is of the wrong  type.

Neither of these claims make sense to me.

What I'm hoping is that someone with sufficient access to jqt source
code can run this under a debugger and tell me what the error is
really about.

Thanks,

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to