You are right. The prototype is correct. In which case I guess Brian is
calling it incorrectly (not providing an integer list for the holding
the result) or is not looking in the integer list for the result.
----- Original Message -----
From: "Oleg Kobchenko" <[EMAIL PROTECTED]>
To: "General forum" <[email protected]>
Sent: Saturday, September 30, 2006 7:39 PM
Subject: Re: [Jgeneral] dll return values
The signature has void return value.
void glGetIntegerv(GLenum pname, GLint * params);
So the original declaration is correct.
You need to know how many ints a particular
parameter returns to pass appropriate array size.
See anim.ijs from animate package to see how
gswritebmp for windows in implemented.
http://olegykj.sourceforge.net/
--- Eric Iverson <[EMAIL PROTECTED]> wrote:
The prototype with n indicates no result. In case of inquiries like
you
are using the prototype should have an i. That is:
glGetIntegerv=: ' glGetIntegerv > i i *i' & (15!:0)
----- Original Message -----
From: "Brian Schott" <[EMAIL PROTECTED]>
To: "General forum" <[email protected]>
Sent: Saturday, September 30, 2006 4:10 PM
Subject: [Jgeneral] dll return values
> How do I get return values from gl3 verbs like the
> following for opengl?
>
> glIsEnabled=: ' glIsEnabled > c i' & (15!:0)
>
> glGetIntegerv=: ' glGetIntegerv > n i *i' & (15!:0)
> glGetLightfv=: ' glGetLightfv > n i i *f' & (15!:0)
>
> The following 3 excerpts show some of the attempts
> and the errors I have received.
>
> excerpt 1 *****************************************
>
>
> glIsEnabled_jzopenglutil_ GL_BLEND_jzopenglutil_
>
> There is no apparent error here, but it looks like
> the returned value is empty (0$00, eg) which is not helpful
> and should be either a 0 or a 1 according to my
> expectations.
>
> excerpt 2 *****************************************
>
>
> glGetLightfv_jzopenglutil_
> GL_LIGHT0_jzopenglutil_;GL_POSITION_jzopenglutil_
> |domain error: glGetLightfv_jzopenglutil_
> | glGetLightfv_jzopenglutil_
> GL_LIGHT0_jzopenglutil_;GL_POSITION_jzopenglutil_
> cder''
> 4 0
>
> From the above cder and JforC I know "... (the
> number of arguments did not match the number of
> declarations)"
>
> excerpt 3 *****************************************
>
> abc =: 1
> glGetLightfv_jzopenglutil_
> GL_LIGHT0_jzopenglutil_;GL_POSITION_jzopenglutil_;abc
> |domain error: glGetLightfv_jzopenglutil_
> | glGetLightfv_jzopenglutil_
> GL_LIGHT0_jzopenglutil_;GL_POSITION_jzopenglutil_;abc
> cder''
> 6 2
>
> From the above and similar trials I know that the
> phony last argument does not match the needed return value.
>
>
> (B=)
> ----------------------------------------------------------------------
> For information about J forums see
> http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see
http://www.jsoftware.com/forums.htm
__________________________________________________
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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm