The way gsinit executes initialization and size related code must be be followed in your own code. If the gsinit result is 1 then
your code must do whatever initialization and size related stuff you require.
If the size (width and height) have changed then all gl3 commands that have wh parameters need to be done again. In particular if
you have gl3 commands with wh parameters that are in a list, then the list must be rebuilt when the size changes.
It sounds as if your problem is that something that needs to be done when the
size changes isn't being done.
----- Original Message -----
From: "Brian Schott" <[EMAIL PROTECTED]>
To: "Beta forum" <[email protected]>
Sent: Friday, June 09, 2006 1:11 PM
Subject: RE: [Jbeta] J6 changes in openGL (jzopenglutil.ijs)
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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm