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

Reply via email to