Brian Schott wrote:
> display lists, LISTS.  The noun LISTS is central to **all**
> of the opengl examples I have studied in the Demos because
> they are drawn with the verb stdpaintx for which LISTS is
> primary:
> 
> stdpaintx =: 11!:2021@(3 : 'glaSwapBuffers glCallLists LISTS')

The issue here isn't really the definition of stdpaintx,
it's the definition of the paint event handler.  Assuming
you're using glinit, this will be opengl_g_paint

stdpaintx runs 11!:2021 which triggers a paint event.
In the default glinit case, this means that you'll be
running stdpaint again which will render a fresh instance
of the buffer and then do glaSwapBuffers, again.

Personally, I've never bothered with stdpaintx.  In the cases 
I care about glpaintx accomplishes the same thing and does it
more efficiently.

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

Reply via email to