The test script below gives "control error" now in 

   9!:14''
j601/beta/2006-02-14/21:20

   run''
|control error: stdsizeaspect
|       a_g_size''
   


--- Eric Iverson <[EMAIL PROTECTED]> wrote:

> Brian,
> 
> I have done a quick test with the Java front end in windows. I found two 
> bugs/differences between Jwdw (windows front end) and Jwdp (portable Java 
> front end) that probably explain why things don't work as expected on your 
> Mac.
> 
> The 1st is that a glpaintx'' is required at the end of the go verb in Java 
> opengl. I need to look into this.
> 
> The 2nd is that in the sys_timer event handler Jwdp has lost the selection 
> of the current form and current isigraph and this means the go in the timer 
> event gets an error and turns of the timer. Adding a few smoutput calls in 
> the timer event made this obvious.
> 
> The script that follows is modified to add the glpaintx and to go and to do 
> psel and glsel in the timer event. The psel and gsle are necessary anyways 
> as causing any event on any other form would cause failure in the windows 
> example for the same reason.
> 
> I have also wrapped the sentences at the end that were automatically run (I 
> hate scripts that do this) into a run verb.
> 
> Please try the following on your Mac. Run the script and then run sentence 
> run'' and with lots of luck you'll see a tumbling cube.
> 
> **
> require 'opengl'
> coinsert 'jgl3 jzopengl'
> 
> AMBIENT=: 0.15
> DIFFUSE=: 0.7
> SPECULAR=: 0.7
> ROTXYZ=: 40 50 0
> 
> go=: 3 : 0
> glrotate 2 3 5
> startlist LRotate
> stdrotate''
> endlist''
> stdpaint''
> glpaintx''
> )
> 
> A=: 0 : 0
> pc a closeok;
> xywh 0 0 200 200;
> cc g isigraph ws_clipchildren  ws_clipsiblings rightmove bottommove;
> pas 0 0;pshow;ptop;
> rem form end;
> )
> 
> a_g_paint=: stdpaint
> a_g_size=: stdsizeaspect
> 
> sys_timer_z_=: 3 : 0
> try.
>  wd'psel a'
>  glsel 'g'
>  go ''
> catch. wd'timer 0' end.
> )
> 
> run=: 3 : 0
> wd A
> glreset''
> glaRC''
> LISTS=: NURBS=: QUADS=: ''
> glEnable GL_DEPTH_TEST
> glclearcolor CLEARCOLOR
> glcolor COLOR
> stdlistlight''
> genlist 'Box'
> drawcube makelist Box 0 0 1
> a_g_size''
> wd 'pshow'
> wd 'timer 15'
> )
> 
> 
> 
> ----- Original Message ----- 
> From: <[EMAIL PROTECTED]>
> To: "Programming forum" <[email protected]>
> Sent: Monday, February 06, 2006 10:57 AM
> Subject: Re: [Jprogramming] opengl
> 
> 
> > Fraser,
> >
> > I, too, wonder if there is a problem with the Mac
> > implementation. Btw, can you describe the behavior you
> > observed before (and after, if possible) you typed go'' ,
> > please?
> >
> > On Tue, 7 Feb 2006, Fraser Jackson wrote:
> >
> > + Brian,
> > +
> > + I have tried Chris's script on both J504 and J601 under Windows XP and 
> > it
> > + works fine.  Is there some difference between the implementations on the 
> > Mac
> > + and in Windows causing your problem.
> > +
> > + Fraser
> > +
> > + ----------------------------------------------------------------------
> > + For information about J forums see http://www.jsoftware.com/forums.htm
> > +
> >
> > (B=) <----------my "sig"
> >
> > Brian Schott
> > Atlanta, GA, USA
> > schott DOT bee are eye eh en AT gee em ae eye el DOT com
> > http://www.cpu-net.com/host/bschott/


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to