Sorry for my in-exact sentence. I meant if there were a new gl3 command "glDelay", then it will be possible to insert it to display list to provide delay between drawing. for example

go =: 3 : 0
  alloc__ogl HW
  CLEARCOLOR =. ?4#2
  glClearColor CLEARCOLOR
  glClear GL_COLOR_BUFFER_BIT
  glOrtho _1 1 _1 1 _1 1
  glColor3d 0 0 0
  glBegin GL_POLYGON
  glVertex 1  ,0  ,0,1
  glVertex 0  ,0.5  ,0,1
  glVertex _1 ,0  ,0,1
  glEnd ''
  glDelay 5   NB. delay 5 second
  draw__ogl''
  wd'pshow;'
)

Having glDelay embedded into display list, so that whenever display list is redrawed, there will be automatical delay. and
  "go[go[go''"
will have 5 seconds of delay for each rendering.
Take it as a request for a new gl3 feature, but it may be difficult to implement efficiently because the delay in paint event may make system freezing for a few seconds in each repaint.

Brian Schott wrote:
Bill,

        Regarding glDelay, I could find no such command. But
there is a glFinish which is more forceful than glFlush used
in draw_keep and pixels_keep. But replacing Finish with
Flush did not change the result of my go verb.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to