I have gotten some clues by looking at the gl3.ijs
script in the area where gla... verbs are described. By
comparing the definition of the dll glMaterialfv and the
helper glaMaterial, I hope I can figure out the needed
translations for *f that I need for glGetLightfv for
example. But I am less optimistic about the dll's like
glIsEnabled for which there are no gla... examples afaik.
(B=)
glMaterialfv=: ' glMaterialfv > n i i *f' & (15!:0)
NB. gla helpers for calls with args that aren't lists of scalars
...
glaMaterial=: 3 : 'glMaterialfv (0{y);(1{y);<4{.2}.y'
On Sat, 30 Sep 2006, Brian Schott wrote:
+ 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)
+
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm