Ok, it works, for the most part, under J7. FYI,
-- Raul On Wed, Jul 6, 2011 at 11:25 AM, bill lam <[email protected]> wrote: > It depends. FYI opengl demos is under addons/demos. > > Срд, 06 Июл 2011, Raul Miller писал(а): >> As near as I can tell, the opengl demos are not a part of J701. >> >> -- >> Raul >> >> On Wed, Jul 6, 2011 at 12:46 AM, bill lam <[email protected]> wrote: >> > I think J602 jzopengl under windows will always fail the first time it is >> > called, so that a dummy call during initialization is needed. After that, >> > all calls to it should succeed without iteration. >> > >> > I guess it was actually the prior call to ChooseSetPixelFormat hdc >> > that failed so that wglCreateContext can never succeed. >> > >> > Does it work in J701? >> > >> >> Date: Tue, 5 Jul 2011 10:27:48 -0400 >> >> From: Raul Miller <[email protected]> >> >> To: Programming forum <[email protected]> >> >> Subject: [Jprogramming] opengl demo >> >> Reply-To: Programming forum <[email protected]> >> >> >> >> I am trying J's demos under j602. They used to work for me, though I >> >> am not specifically sure if that was on this machine. >> >> >> >> opengl simple demos works just fine for me. >> >> >> >> opengl, however fails on an assertion: >> >> 'hgl failed' oglassert hgl >> >> >> >> in rc inherited from jzopengl. >> >> >> >> Looking closer, hgl is 0, in: >> >> >> >> hgl=: >{.wglCreateContext hdc >> >> if. *./0=hgl,ONETIME do. >> >> ONETIME_jzopengl_=: 1 >> >> rc'' >> >> end. >> >> 'hgl failed' oglassert hgl >> >> >> >> glGetError returns 1282 (invalid operation) >> >> >> >> So.. apparently wglCreateContext fails sometimes and the solution has >> >> been to recursively run rc again, but just once. >> >> >> >> Does anyone have any suggestions of what to investigate, to determine >> >> what is going wrong here? >> >> >> >> Note that J's debugger has a tendency to vanish when I try experiments >> >> (such as running rc'' manually in a debugging context -- which still >> >> failed), and I have to exit J and restart to get it back. So I feel a >> >> bit lost here. >> >> >> >> Thanks, >> >> >> >> -- >> >> Raul >> >> >> > >> > -- >> > regards, >> > ==================================================== >> > GPG key 1024D/4434BAB3 2008-08-24 >> > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 >> > ---------------------------------------------------------------------- >> > For information about J forums see http://www.jsoftware.com/forums.htm >> > >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm > > -- > regards, > ==================================================== > GPG key 1024D/4434BAB3 2008-08-24 > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
