From: Sven G. <sgo...@ja...> - 2000-09-06 15:21:42
|
Olivier Michel wrote: > > Sven Goethel wrote: > > > yes > > And I have a little problem: > > glLightModeli() takes two int arguments, typically > GL_LIGHT_MODEL_LOCAL_VIEWER and GL_FALSE. The problem is that GL_FALSE > appears to be defined as boolean and hence the following call doesn't > compile: > > glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER,GL_FALSE); > > error: glLightModeli(int,int) in gl4java.GLFunc cannot be applied to > (int,boolean) > > I had to write instead: > > glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER,0); > This is the right way ! > which compiled and probably works but is not very nice... :( > Well, but java is more type restricted ... > Maybe you could clean that up by defining GL_FALSE as int rather than > boolean or define another glLightModeli() method with int and boolean as > arguments... > > Please, let me know if you plan to fix this in the next release of > GL4Java. Thanks. > There is no need for a fix :-) It is like it is ! > -Olivier > Thanxs, Sven > _______________________________________________ > gl4java-usergroup mailing list > gl4...@li... > http://lists.sourceforge.net/mailman/listinfo/gl4java-usergroup -- mailto:sgo...@ja... www : http://www.jausoft.com ; pgp: http://www.jausoft.com/gpg/ voice : +49-521-2399440, +49-170-2115963; fax: +49-521-2399442 |