Re: Mesa + Guile

Adolf Mathias (dolfi@athene.zkm.de)
Mon, 28 Aug 1995 10:28:52 +0200

> [?] Is there a built-in way to do bitwise OR's in Guile,
> as is needed in some parts of OpenGL?
> eg. glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH)
> Is there something like
> (glutInitDisplayMode (bitwise-or GLUT_DOUBLE
> GLUT_RGB
> GLUT_DEPTH))

There are functions logand, logior and logxor in libguile.a and
standard guile. Apart from that, it would have been possible to simply
use + to put the flags together.

Concerning your other question I can't say much, but according to the
source code there is currently no way to pass a SCM vector in, since
the appropriate C routine directly expects a float pointer and not a
SCM pointer. But maybe I'm wrong.

Hope this helps

Dolfi

Adolf Mathias Email: <dolfi@zkm.de>
Center for Art & Media, Dept. for Image Media
Post Box 6919 76049 Karlsruhe
Tel. +49 (0)721 9340 404 Fax. ...9340 49