Raul,

        Thank you for your comment. On first appearances
your code seems redundant because the first statement in
gsinit (which is the beginning of my paint verb) is

res=. rc__ogl''

and in jzopengl_darwin.ijs the definition of res is as
follows.

rc=: 3 : 0
if. wh-:glqwh'' do. 0[current'' return. end.
alloc glqwh''
hwnd=: {.glqhandles''
1
)

        Has anyone tried to execute my code on a nonMac
platform?

(B=)

On Fri, 9 Jun 2006, Miller, Raul D wrote:

+ Hopefully it's obvious that if you add
+
+  if. -.wh-:glqwh'' do.
+   makedodec 1 0 0 [ openglut_run wh=:glqwh''
+  end.
+
+ at the top of your paint event handler, that you can
+ resize.
+
+ I've not tried to do a detailed analysis of your
+ code to figure out what state transitions it is
+ performing, but in general I think you need some
+ kind of conditional in your paint event handler
+ to deal with resize.
+
+ --
+ Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to